Skip to content

Commit

Permalink
Declare all layers in shared button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
m-akinc committed Mar 25, 2024
1 parent 0616795 commit 395113b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nimble-components/src/patterns/button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { ButtonAppearance } from './types';
import { accessiblyHidden } from '../../utilities/style/accessibly-hidden';

export const styles = css`
@layer base, hover, focusVisible, active, disabled, top;
@layer base, checked, hover, focusVisible, active, disabled, top;
@layer base {
${display('inline-flex')}
Expand Down
2 changes: 0 additions & 2 deletions packages/nimble-components/src/toggle-button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import { appearanceBehavior } from '../utilities/style/appearance';
import { ButtonAppearance } from './types';

export const styles = css`
@layer base, checked, hover, focusVisible, active, disabled, top;
${buttonStyles}
${buttonAppearanceVariantStyles}
Expand Down

0 comments on commit 395113b

Please sign in to comment.