aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/button.style.js9
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'
},