-
-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix focus visibility for input components in site setup #6544
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed missing visible focus for multiple select inputs across components using the SelectStyling widget in Site Setup. The fix ensures proper focus indication for accessibility across all instances of the widget.@Abhishek-17h | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,10 +112,13 @@ export const customSelectStyles = { | |
control: (styles, state) => ({ | ||
...styles, | ||
border: 'none', | ||
borderBottom: '1px solid #c7d5d8', | ||
boxShadow: 'none', | ||
borderBottomStyle: state.menuIsOpen ? 'dotted' : 'solid', | ||
borderBottom: `1px ${state.menuIsOpen ? 'dotted' : 'solid'} ${ | ||
state.isFocused ? '#339edc' : '#c7d5d8' | ||
}`, | ||
boxShadow: state.isFocused ? '0 2px 0 #339edc' : 'none', | ||
minHeight: '60px', | ||
transition: 'all 0.2s ease-in-out', | ||
outline: 'none', | ||
}), | ||
menu: (styles, state) => ({ | ||
...styles, | ||
|
@@ -141,21 +144,21 @@ export const customSelectStyles = { | |
}), | ||
option: (styles, state) => ({ | ||
...styles, | ||
backgroundColor: null, | ||
minHeight: '50px', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
padding: '12px 12px', | ||
backgroundColor: state.isFocused ? '#e5f4fb' : null, | ||
color: state.isSelected | ||
? '#007bc1' | ||
: state.isDisabled | ||
? '#b5b5b5' | ||
: state.isFocused | ||
? '#4a4a4a' | ||
? '#339edc' | ||
: 'inherit', | ||
minHeight: '50px', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
padding: '12px 12px', | ||
':active': { | ||
backgroundColor: null, | ||
backgroundColor: state.isFocused ? '#e5f4fb' : null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Abhishek-17h out of curiosity, where did you get the colors in this PR? I know we're picky about being consistent with colors, especially to ensure sufficient contrast for accessibility. I don't know where we capture them all in a single place, like a style guide. Hopefully someone from the @plone/volto-accessibility team can inform me. If this thing does not exist, it might be a good thing to add to our accessibility PLIP #6504. |
||
}, | ||
svg: { | ||
flex: '0 0 auto', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.