diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-09 19:37:22 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-09 19:37:22 +0200 |
| commit | 9ec61d0f0a26369196d9e9b4ac62f4a5b3c38ce1 (patch) | |
| tree | cbc0d89bc6bec6a7cbb1026e2ed9e1aa0800b127 /src/components/button.style.js | |
| parent | 1af8ca29f33a43f72175f4b17a2447149694a7d8 (diff) | |
comments and cleanup
Diffstat (limited to 'src/components/button.style.js')
| -rw-r--r-- | src/components/button.style.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/button.style.js b/src/components/button.style.js index f24e8ccc..c86fee64 100644 --- a/src/components/button.style.js +++ b/src/components/button.style.js @@ -21,17 +21,20 @@ const hoverGlow = { } export default { - name: 'Button', - selector: '.button', + name: 'Button', // Name of the component + selector: '.button', // CSS selector/prefix + // States, system witll calculate ALL possible combinations of those and append a "normal" to them + standalone "normal" state states: { + // normal: state is implicitly added disabled: ':disabled', toggled: '.toggled', pressed: ':active', hover: ':hover', focused: ':focus-within' }, + // Variants are mutually exclusive, which saves on computation time variants: { - normal: '-default', + normal: '-default', // you can override normal variant danger: '.danger', unstyled: '-unstyled' }, |
