Merge branch 'fix-focus' into 'develop'
Fix focus Closes #1366 See merge request pleroma/pleroma-fe!2091
This commit is contained in:
commit
f91f377ce0
2 changed files with 8 additions and 1 deletions
0
changelog.d/focus.fix
Normal file
0
changelog.d/focus.fix
Normal file
|
@ -9,7 +9,7 @@ export default {
|
||||||
// However, cascading still works, so resulting state will be result of merging of all relevant states/variants
|
// 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
|
// normal: '' // normal state is implicitly added, it is always included
|
||||||
toggled: '.toggled',
|
toggled: '.toggled',
|
||||||
focused: ':focus-visible',
|
focused: ':focus-within',
|
||||||
pressed: ':focus:active',
|
pressed: ':focus:active',
|
||||||
hover: ':hover:not(:disabled)',
|
hover: ':hover:not(:disabled)',
|
||||||
disabled: ':disabled'
|
disabled: ':disabled'
|
||||||
|
@ -89,6 +89,13 @@ export default {
|
||||||
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
|
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
state: ['toggled', 'focused'],
|
||||||
|
directives: {
|
||||||
|
background: '--accent,-24.2',
|
||||||
|
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
state: ['toggled', 'disabled'],
|
state: ['toggled', 'disabled'],
|
||||||
directives: {
|
directives: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue