Merge branch 'fix-focus' into 'develop'

Fix focus

Closes #1366

See merge request pleroma/pleroma-fe!2091
This commit is contained in:
HJ 2025-03-19 01:42:03 +00:00
commit f91f377ce0
2 changed files with 8 additions and 1 deletions

0
changelog.d/focus.fix Normal file
View file

View file

@ -9,7 +9,7 @@ export default {
// 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
toggled: '.toggled',
focused: ':focus-visible',
focused: ':focus-within',
pressed: ':focus:active',
hover: ':hover:not(:disabled)',
disabled: ':disabled'
@ -89,6 +89,13 @@ export default {
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
}
},
{
state: ['toggled', 'focused'],
directives: {
background: '--accent,-24.2',
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
}
},
{
state: ['toggled', 'disabled'],
directives: {