Skip to content

Commit

Permalink
feat(@clayui/css): Mixins clay-css adds option to output a Sass `@e…
Browse files Browse the repository at this point in the history
…xtend` with the `extend` key

How to use:
```
$btn-palette: (
    '%btn-custom': (
        color: blue,
    ),
    '.btn-custom': (
        extend: '%btn-custom',
    ),
);
```
  • Loading branch information
pat270 committed Jul 7, 2022
1 parent 868d568 commit eb6206b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/clay-css/src/scss/mixins/_globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@
transition: none;
}
}
} @else if ($key == 'extend') {
@extend #{$value} !optional;
} @else if ($key == 'user-select') {
-ms-user-select: $value;
-moz-user-select: $value;
Expand Down

0 comments on commit eb6206b

Please sign in to comment.