Skip to content

Commit

Permalink
fix(action-button): expand Spectrum CSS processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Mar 26, 2021
1 parent 708d587 commit ff1a424
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/action-button/src/spectrum-action-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-alias-icon-color-hover)
);
}
:host([emphasized]) .is-active {
:host([emphasized][active]) {
/* .spectrum-ActionButton--emphasized.is-active */
background-color: var(
--spectrum-actionbutton-m-emphasized-background-color-down,
Expand All @@ -902,7 +902,7 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-alias-text-color-down)
);
}
:host([emphasized]) .is-active #hold-affordance {
:host([emphasized][active]) #hold-affordance {
/* .spectrum-ActionButton--emphasized.is-active .spectrum-ActionButton-hold */
color: var(
--spectrum-actionbutton-m-emphasized-hold-icon-color-down,
Expand Down Expand Up @@ -1022,8 +1022,8 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-global-color-static-white)
);
}
:host([emphasized][selected]) .is-active,
:host([emphasized][quiet][selected]) .is-active {
:host([emphasized][selected][active]),
:host([emphasized][quiet][selected][active]) {
/* .spectrum-ActionButton--emphasized.is-selected.is-active,
* .spectrum-ActionButton--emphasized.spectrum-ActionButton--quiet.is-selected.is-active */
background-color: var(
Expand All @@ -1039,8 +1039,8 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-global-color-static-white)
);
}
:host([emphasized][selected]) .is-active ::slotted([slot='icon']),
:host([emphasized][quiet][selected]) .is-active ::slotted([slot='icon']) {
:host([emphasized][selected][active]) ::slotted([slot='icon']),
:host([emphasized][quiet][selected][active]) ::slotted([slot='icon']) {
/* .spectrum-ActionButton--emphasized.is-selected.is-active .spectrum-Icon,
* .spectrum-ActionButton--emphasized.spectrum-ActionButton--quiet.is-selected.is-active .spectrum-Icon */
color: var(
Expand Down
5 changes: 5 additions & 0 deletions packages/action-button/src/spectrum-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const config = {
selector: ':active',
name: 'active',
},
{
type: 'boolean',
selector: '.is-active',
name: 'active',
},
{
type: 'boolean',
name: 'emphasized',
Expand Down

0 comments on commit ff1a424

Please sign in to comment.