Skip to content

Commit

Permalink
Update @primer/css to 21.0.7 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurClemens authored Aug 13, 2023
1 parent c0578aa commit ff3d1e7
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 524 deletions.
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

### Improvements

- The open state of menus and dialogs can now be maintained when used inside forms.
- The open state of menus and dialogs can now be maintained when used inside forms - see [Menus and dialogs](doc-extra/menus-and-dialogs.md).
- Improved validation message logic.
- Updated components:
- `theme_menu_options`: added attr `update_theme_event`: the event name to be called for updating the theme.
- `radio_group`: added to slot `radio_button` the attr `label` to set a custom label
- `radio_group`: added to slot `radio_button` the attr `label` to set a custom label.
- Updated `@primer/css` to `21.0.7`.

### Breaking changes
- Removed functions related to session for theme state - see `PrimerLive.Theme` for alternatives:
- Removed functions related to using session for theme state - see `PrimerLive.Theme` for alternatives. Removed:
- `ThemeSessionController`
- `ThemeEvent`
- Theme hook
Expand All @@ -22,12 +23,12 @@
- For all menu components, including 'dialog' and 'drawer': passing prompt options to the `toggle` slot is replaced by passing `prompt_options` to the main component.
- In the `drawer` component, replace the subcomponent `drawer_content` with the slot `body`.
- This allows the focus wrap ID to be derived from the drawer's 'id' attribute, similar to how it is done for 'dialog'.

When using the original code, a warning message will be shown in the shell.
- When using the previous syntax, a warning message will be shown in the shell.

### Other changes

- The HTML structure and some of the CSS classes of `action_menu`, `dropdown_menu` and `select_menu` have changed. Instead of `<details>` and `<summary>` elements, the open state is now controlled with `<input type="checkbox">` and `<label>`.
- HTML attributes are sorted alphabetically.

## 0.3.1

Expand Down
5 changes: 0 additions & 5 deletions assets/css/primercss-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,3 @@ span.ActionList-content[aria-expanded] {
span[data-color-mode] {
background: none;
}

/* Restore text selection. */
*::selection {
background-color: var(--color-accent-subtle);
}
14 changes: 7 additions & 7 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "jest"
},
"dependencies": {
"@primer/css": "21.0.3"
"@primer/css": "21.0.7"
},
"devDependencies": {
"@jest/globals": "^29.6.2",
Expand Down
Loading

0 comments on commit ff3d1e7

Please sign in to comment.