-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/list): add radio toggles #25933
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
Conversation
2683a4f to
18ea893
Compare
mmalerba
left a comment
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.
LGTM
devversion
left a comment
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.
LGTM, nice change!
8e892c4 to
8072226
Compare
|
Hi all, I've made fixes to respond to PR comments
@crisbeto does this PR look good to you? |
8072226 to
643361b
Compare
643361b to
884e6b5
Compare
|
I've made fixed based on PR comments and changed the target to minor:
|
crisbeto
left a comment
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.
LGTM
Add radio toggles for single selection. Fix a11y issue where selected state is visually communicated with color alone. Rename `checkboxPosition` Input to `togglePosition` and deprecate `checkboxPosition`. `togglePosition` configures the position of both the radio and checkbox indicators. `checkboxPosition` also configures the position of both. Summary of API and behavior changes: - MDC List displays radio indicators for single-selection - rename `checkboxPosition` Input to `togglePosition` - rename `type MatListOptionCheckboxPosition` to `type MatListOptionTogglePosition` DEPRECTED: * `checkboxPosition` is deprecated because `togglePosition` replaces it * `MatListOptionCheckboxPosition` is deprecated because `MatListOptionTogglePosition` replaces it Closes angular#7157, Fixes angular#25900
884e6b5 to
eccc4a8
Compare
|
changes since this was last reviewed:
|
Add an opt-out for radio indicators for single-selection. Adds both an Input and DI token to specify if radio indicators are hidden. By default, display radio indicators. If both DI token and Input are specified, the Input wins. PR angular#25933 added radio toggles for single-selection. Add an opt-out to provide a way to have same appearance as before angular#25933. API changes - add `@Input hideSingleSelectionIndicator` to specify if radio indicators are displayed - add MAT_LIST_CONFIG token to specify default value for `hideSingleSelectionIndicator`
Add an opt-out for radio indicators for single-selection. Adds both an Input and DI token to specify if radio indicators are hidden. By default, display radio indicators. If both DI token and Input are specified, the Input wins. PR angular#25933 added radio toggles for single-selection. Add an opt-out to provide a way to have same appearance as before angular#25933. API changes - add `@Input hideSingleSelectionIndicator` to specify if radio indicators are displayed - add MAT_LIST_CONFIG token to specify default value for `hideSingleSelectionIndicator`
Add an opt-out for radio indicators for single-selection. Adds both an Input and DI token to specify if radio indicators are hidden. By default, display radio indicators. If both DI token and Input are specified, the Input wins. PR #25933 added radio toggles for single-selection. Add an opt-out to provide a way to have same appearance as before #25933. API changes - add `@Input hideSingleSelectionIndicator` to specify if radio indicators are displayed - add MAT_LIST_CONFIG token to specify default value for `hideSingleSelectionIndicator`
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fix(material/list): add radio toggles
Add radio toggles for single selection. Fix a11y issue where selected
state is visually communicated with color alone.
Rename
checkboxPositionInput totogglePositionand deprecatecheckboxPosition.togglePositionconfigures the position of both theradio and checkbox indicators.
checkboxPositionalso configures theposition of both.
Summary of API and behavior changes:
checkboxPositionInput totogglePositiontype MatListOptionCheckboxPositiontotype MatListOptionTogglePositionDEPRECTED:
checkboxPositionis deprecated becausetogglePositionreplaces itMatListOptionCheckboxPositionis deprecated becauseMatListOptionTogglePositionreplaces itCloses #7157, Fixes #25900