aboutsummaryrefslogtreecommitdiff
path: root/src/components/button.style.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-15 20:20:27 +0200
committerHenry Jameson <me@hjkos.com>2024-02-15 20:20:27 +0200
commit96e3a1593ab6b45b2b6794e353623d0e87a7d8ff (patch)
treed4cd8d68368e3a04032ccd35e3c45f1705781449 /src/components/button.style.js
parent34e4dd0a79cdc03976c4137969beb4259ecdf500 (diff)
more optimizations, execution is now split into eager (for main UI) and
lazy (for modals, popovers etc) parts
Diffstat (limited to 'src/components/button.style.js')
-rw-r--r--src/components/button.style.js22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/components/button.style.js b/src/components/button.style.js
index 900eef26..9f238b4e 100644
--- a/src/components/button.style.js
+++ b/src/components/button.style.js
@@ -38,11 +38,11 @@ export default {
// All states inherit from "normal" state, there is no other inheirtance, i.e. hover+disabled only inherits from "normal", not from hover nor disabled.
// However, cascading still works, so resulting state will be result of merging of all relevant states/variants
// normal: '' // normal state is implicitly added, it is always included
- disabled: ':disabled',
toggled: '.toggled',
pressed: ':active',
hover: ':hover',
- focused: ':focus-within'
+ focused: ':focus-within',
+ disabled: ':disabled'
},
// Variants are mutually exclusive, each component implicitly has "normal" variant, and all other variants inherit from it.
variants: {
@@ -108,13 +108,6 @@ export default {
}
},
{
- state: ['disabled', 'hover'],
- directives: {
- background: '$blend(--background, 0.25, --parent)',
- shadow: [...buttonInsetFakeBorders]
- }
- },
- {
component: 'Text',
parent: {
component: 'Button',
@@ -124,17 +117,6 @@ export default {
textOpacity: 0.25,
textOpacityMode: 'blend'
}
- },
- {
- component: 'Text',
- parent: {
- component: 'Button',
- state: ['disabled', 'hover']
- },
- directives: {
- textOpacity: 0.25,
- textOpacityMode: 'blend'
- }
}
]
}