Merge branch 'tusooa/focus-visible' into 'develop'
Make sure each hover style is applied to :focus-visible See merge request pleroma/pleroma-fe!2098
This commit is contained in:
commit
d712e7ddc5
8 changed files with 9 additions and 8 deletions
1
changelog.d/focus-visible.fix
Normal file
1
changelog.d/focus-visible.fix
Normal file
|
@ -0,0 +1 @@
|
|||
Make sure hover style is also applied to :focus-visible
|
|
@ -11,7 +11,7 @@ export default {
|
|||
toggled: '.toggled',
|
||||
focused: ':focus-within',
|
||||
pressed: ':focus:active',
|
||||
hover: ':hover:not(:disabled)',
|
||||
hover: ':is(:hover, :focus-visible):not(:disabled)',
|
||||
disabled: ':disabled'
|
||||
},
|
||||
// Variants are mutually exclusive, each component implicitly has "normal" variant, and all other variants inherit from it.
|
||||
|
|
|
@ -6,8 +6,8 @@ export default {
|
|||
states: {
|
||||
toggled: '.toggled',
|
||||
disabled: ':disabled',
|
||||
hover: ':hover:not(:disabled)',
|
||||
focused: ':focus-within'
|
||||
hover: ':is(:hover, :focus-visible):not(:disabled)',
|
||||
focused: ':focus-within:not(:is(:focus-visible))'
|
||||
},
|
||||
validInnerComponents: [
|
||||
'Text',
|
||||
|
|
|
@ -2,7 +2,7 @@ export default {
|
|||
name: 'Input',
|
||||
selector: '.input',
|
||||
states: {
|
||||
hover: ':hover:not(.disabled)',
|
||||
hover: ':is(:hover, :focus-visible):not(.disabled)',
|
||||
focused: ':focus-within',
|
||||
disabled: '.disabled'
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@ export default {
|
|||
selector: '.list-item',
|
||||
states: {
|
||||
active: '.-active',
|
||||
hover: ':hover:not(.-non-interactive)'
|
||||
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(.-non-interactive)'
|
||||
},
|
||||
validInnerComponents: [
|
||||
'Text',
|
||||
|
|
|
@ -11,7 +11,7 @@ export default {
|
|||
'Avatar'
|
||||
],
|
||||
states: {
|
||||
hover: ':hover:not(.disabled)',
|
||||
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)',
|
||||
active: '.-active',
|
||||
disabled: '.disabled'
|
||||
},
|
||||
|
|
|
@ -34,7 +34,7 @@ export default {
|
|||
notEditable: true, // for now
|
||||
states: {
|
||||
pressed: ':active',
|
||||
hover: ':hover:not(:disabled)',
|
||||
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(:disabled)',
|
||||
disabled: ':disabled'
|
||||
},
|
||||
validInnerComponents: [
|
||||
|
|
|
@ -3,7 +3,7 @@ export default {
|
|||
selector: '.tab', // CSS selector/prefix
|
||||
states: {
|
||||
active: '.active',
|
||||
hover: ':hover:not(.disabled)',
|
||||
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)',
|
||||
disabled: '.disabled'
|
||||
},
|
||||
validInnerComponents: [
|
||||
|
|
Loading…
Add table
Reference in a new issue