Skip to content

Commit

Permalink
Update README and add upgrade guide (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillplatonov authored Mar 18, 2024
1 parent b04d7dd commit 9ab98c1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Binary file modified .github/assets/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Run installer:
bin/rails polaris_view_components:install
```

## Upgrade

Check out [UPGRADING.md](UPGRADING.md) for upgrade instructions.

## Development

To get started:
Expand Down
13 changes: 13 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Upgrading guide

## Upgrading to `v2.0.0`

This release updates UI to Polaris v12 styles. Required changes after gem upgrade:

1. Add `polaris_html_classes` to your `html` tag in layouts:

```erb
<html class="<%= polaris_html_classes %>" style="<%= polaris_html_styles %>">
```

2. Update icon names in your app. Naming convention in Polaris Icons v12 changed. There's no more separation to `Minor` and `Major` icons. All icons have `Icon` suffix. New icon names can be found in Polaris documentation: https://polaris.shopify.com/icons

0 comments on commit 9ab98c1

Please sign in to comment.