Skip to content

Commit

Permalink
fix(color-loupe): adjust inclusion order of opacity-checkerboard
Browse files Browse the repository at this point in the history
Make sure opacity checkerboard styles are included before the component
styles, to make sure any component styles with the same specificity take
precendence.
  • Loading branch information
jawinn committed Sep 13, 2023
1 parent 21d6f47 commit 5d791b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/color-loupe/src/ColorLoupe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import opacityCheckerboardStyles from '@spectrum-web-components/opacity-checkerb
*/
export class ColorLoupe extends SpectrumElement {
public static override get styles(): CSSResultArray {
return [styles, opacityCheckerboardStyles];
return [opacityCheckerboardStyles, styles];
}

@property({ type: Boolean, reflect: true })
Expand Down

0 comments on commit 5d791b0

Please sign in to comment.