Skip to content

Commit

Permalink
chore: fix #681
Browse files Browse the repository at this point in the history
This makes the 'selection:' variant inheritable
  • Loading branch information
Techassi committed Feb 3, 2022
1 parent dec4a6a commit 9990132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/variants/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Style } from '../../utils/style';
* https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
*/

export function generateStates (
export function generateStates(
variantOrder: string[]
): { [key: string]: () => Style } {
const states: { [key: string]: () => Style } = {
Expand Down Expand Up @@ -61,7 +61,7 @@ export function generateStates (
'first-line': () => new Style().pseudoElement('first-line'),
'file-selector-button': () => new Style().pseudoElement('file-selector-button'),
file: () => new Style().pseudoElement('file-selector-button'),
selection: () => new Style().pseudoElement('selection'),
selection: () => new Style().wrapSelector(selector => `${selector} *::selection, ${selector}::selection`),
marker: () => new Style().wrapSelector(selector => `${selector} *::marker, ${selector}::marker`),

svg: () => new Style().child('svg'),
Expand Down

0 comments on commit 9990132

Please sign in to comment.