-
Notifications
You must be signed in to change notification settings - Fork 9
fix: consistent popover padding for filtered collections #1816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@launchpad-ui/components": patch | ||
| --- | ||
|
|
||
| align popover padding for filtered collections |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,12 +38,21 @@ | |
|
|
||
| &[data-trigger='DialogTrigger'], | ||
| &[data-trigger='ComboBoxDialog'], | ||
| &[data-trigger='SubmenuTrigger'] { | ||
| padding: var(--lp-spacing-300); | ||
| &[data-trigger='DatePicker'], | ||
| &[data-trigger='DateRangePicker'] { | ||
| padding: var(--lp-spacing-200); | ||
| } | ||
|
|
||
| &:has(input[type='search']):is( | ||
| [data-trigger='Select'], | ||
| [data-trigger='MenuTrigger'], | ||
| [data-trigger='SubmenuTrigger'] | ||
| ) { | ||
| padding: var(--lp-spacing-200); | ||
| } | ||
|
|
||
| &:is([data-trigger='DatePicker'], [data-trigger='DateRangePicker']) { | ||
| padding: var(--lp-spacing-300); | ||
| &[data-trigger='SubmenuTrigger']:has(div[role='application']) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one ensures a date(range)-picker in a submenu also has breathing room, consistent with the rest. Calendars/date pickers / etc… don't have a direct WAI-ARIA role, and RAC uses |
||
| padding: var(--lp-spacing-200); | ||
| } | ||
|
|
||
| &[data-placement='top'] { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These missing bits meant the buttons sat flush against the popover's edges