Skip to content

Commit

Permalink
[BulkActions] Re-consolidate se23 logic and styles after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sophschneider authored and sam-b-rose committed Aug 15, 2023
1 parent eaa6cdc commit 48e8051
Showing 1 changed file with 28 additions and 31 deletions.
59 changes: 28 additions & 31 deletions polaris-react/src/components/BulkActions/BulkActions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,44 +89,41 @@ $bulk-actions-button-stacking-order: (

button {
display: flex;
background-color: var(--p-color-bg-strong);
box-shadow: none;

#{$se23} & {
background-color: var(--p-color-bg-strong);
&:hover {
background-color: var(--p-color-bg-strong-hover);
box-shadow: none;
/* stylelint-disable-next-line selector-max-combinators -- se23 */
&:hover {
background-color: var(--p-color-bg-strong-hover);
box-shadow: none;
}
/* stylelint-disable-next-line selector-max-combinators -- se23 */
&:focus-visible,
&:active {
background-color: var(--p-color-bg-strong-active);
}
/* stylelint-disable-next-line selector-max-combinators -- se23 */
&:focus-visible:not(:active) {
/* stylelint-disable-next-line polaris/border/polaris/at-rule-disallowed-list -- se23 */
@include no-focus-ring;
outline: var(--p-border-width-2) solid
var(--p-color-border-interactive-focus);
outline-offset: var(--p-space-05);
}
// stylelint-disable-next-line selector-max-combinators -- se23
&[aria-disabled='true'] {
background-color: var(--p-color-bg-transparent-disabled-experimental);
}
}

&:focus-visible,
&:active {
background-color: var(--p-color-bg-strong-active);
}

// stylelint-disable-next-line selector-max-specificity -- Bulk actions button override
&:focus-visible:not(:active) {
/* stylelint-disable-next-line polaris/border/polaris/at-rule-disallowed-list -- override focus ring */
@include no-focus-ring;
outline: var(--p-border-width-2) solid
var(--p-color-border-interactive-focus);
outline-offset: var(--p-space-05);
}

// stylelint-disable-next-line selector-no-qualifying-type -- Bulk actions button override
&[aria-disabled='true'] {
background-color: var(--p-color-bg-transparent-disabled-experimental);
}
}

// Extra specificity
// stylelint-disable-next-line selector-max-class, selector-max-specificity -- se23
// stylelint-disable-next-line selector-max-class, selector-max-specificity -- Bump specificity to override button styles
&.BulkActionButton.BulkActionButton button {
#{$se23} & {
// stylelint-disable-next-line selector-max-class, selector-max-combinators -- se23
&:focus-visible,
&:active {
box-shadow: var(--p-shadow-inset-md);
}
// stylelint-disable-next-line -- Bulk actions button override
&:focus-visible,
&:active {
box-shadow: var(--p-shadow-inset-md);
}
}
}
Expand Down

0 comments on commit 48e8051

Please sign in to comment.