aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/button.style.js14
-rw-r--r--src/components/input.style.js7
-rw-r--r--src/components/underlay.style.js2
3 files changed, 13 insertions, 10 deletions
diff --git a/src/components/button.style.js b/src/components/button.style.js
index 2f74d127..f24e8ccc 100644
--- a/src/components/button.style.js
+++ b/src/components/button.style.js
@@ -22,7 +22,7 @@ const hoverGlow = {
export default {
name: 'Button',
- selector: '.button-default',
+ selector: '.button',
states: {
disabled: ':disabled',
toggled: '.toggled',
@@ -31,9 +31,9 @@ export default {
focused: ':focus-within'
},
variants: {
+ normal: '-default',
danger: '.danger',
- unstyled: '.unstyled',
- sublime: '.sublime'
+ unstyled: '-unstyled'
},
validInnerComponents: [
'Text',
@@ -56,6 +56,14 @@ export default {
},
{
component: 'Button',
+ variant: 'unstyled',
+ directives: {
+ background: '--fg',
+ opacity: 0
+ }
+ },
+ {
+ component: 'Button',
state: ['hover'],
directives: {
shadow: [hoverGlow, ...buttonInsetFakeBorders]
diff --git a/src/components/input.style.js b/src/components/input.style.js
index 48d74bfa..4d0690cf 100644
--- a/src/components/input.style.js
+++ b/src/components/input.style.js
@@ -28,11 +28,8 @@ export default {
hover: ':hover',
focused: ':focus-within'
},
- variants: {
- danger: '.danger',
- unstyled: '.unstyled',
- sublime: '.sublime'
- },
+ // variants: {
+ // },
validInnerComponents: [
'Text'
],
diff --git a/src/components/underlay.style.js b/src/components/underlay.style.js
index 48965f20..f879c530 100644
--- a/src/components/underlay.style.js
+++ b/src/components/underlay.style.js
@@ -8,8 +8,6 @@ export default {
defaultRules: [
{
component: 'Underlay',
- // variant: 'normal',
- // state: 'normal'
directives: {
background: '#000000',
opacity: 0.2