Skip to content

Commit

Permalink
Merge branch 'main' into pass-props-through-to-toggle-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcosta7 authored Jul 14, 2023
2 parents efb50d2 + 33d4345 commit c511800
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/plenty-bats-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@primer/react': patch
---

ActionList: Fixes the width of items for the full variant

<!-- Changed components: ActionList -->
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"setup": "./script/setup",
"build": "./script/build",
"clean": "rimraf dist lib lib-esm css",
"format": "prettier --cache --write '**/*.{js,md,mdx,ts,tsx,yml}'",
"format:diff": "prettier --cache --list-different '**/*.{js.md,mdx,ts,tsx,yml}'",
"format": "prettier --cache --write '**/*.{js,css,md,mdx,ts,tsx,yml}'",
"format:diff": "prettier --cache --list-different '**/*.{js,css,md,mdx,ts,tsx,yml}'",
"start": "concurrently npm:start:*",
"start:docs": "cd docs && npm run develop",
"start:storybook": "STORYBOOK=true storybook dev -p 6006",
Expand Down
2 changes: 1 addition & 1 deletion src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
appearance: 'none',
background: 'unset',
border: 'unset',
width: 'calc(100% - 16px)',
width: listVariant === 'inset' ? 'calc(100% - 16px)' : '100%',
fontFamily: 'unset',
textAlign: 'unset',
marginY: 'unset',
Expand Down

0 comments on commit c511800

Please sign in to comment.