-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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(alert, action-sheet): show scrollbar for long list of options #28369
Changes from 4 commits
9c422b1
2624cbd
774584d
61b1f6d
7f05061
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 |
---|---|---|
|
@@ -142,8 +142,20 @@ | |
background: var(--background); | ||
} | ||
|
||
.action-sheet-group::-webkit-scrollbar { | ||
display: none; | ||
// Scrollbars on mobile devices will be hidden. | ||
// Users can still scroll the content by swiping. | ||
// If a user has a pointing device, such as a | ||
// mouse or trackpad, then scrollbars will be | ||
// visible. This allows users to scroll the | ||
// content with their pointing device. | ||
// Otherwise, the user would have to use the | ||
// keyboard to navigate through the options. | ||
// This may not be intuitive for users who | ||
// are not familiar with keyboard navigation. | ||
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. ~ Can we use multi-line comments instead? |
||
@media (any-pointer: coarse) { | ||
.action-sheet-group::-webkit-scrollbar { | ||
display: none; | ||
} | ||
} | ||
|
||
.action-sheet-group-cancel { | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -91,10 +91,22 @@ | |||||
overscroll-behavior-y: contain; | ||||||
} | ||||||
|
||||||
.alert-checkbox-group::-webkit-scrollbar, | ||||||
.alert-radio-group::-webkit-scrollbar, | ||||||
.alert-message::-webkit-scrollbar { | ||||||
display: none; | ||||||
// Scrollbars on mobile devices will be hidden. | ||||||
// Users can still scroll the content by swiping. | ||||||
// If a user has a pointing device, such as a | ||||||
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.
Suggested change
|
||||||
// mouse or trackpad, then scrollbars will be | ||||||
// visible. This allows users to scroll the | ||||||
// content with their pointing device. | ||||||
// Otherwise, the user would have to use the | ||||||
// keyboard to navigate through the options. | ||||||
// This may not be intuitive for users who | ||||||
// are not familiar with keyboard navigation. | ||||||
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. ~ Can we use multi-line comments instead? |
||||||
@media (any-pointer: coarse) { | ||||||
.alert-checkbox-group::-webkit-scrollbar, | ||||||
.alert-radio-group::-webkit-scrollbar, | ||||||
.alert-message::-webkit-scrollbar { | ||||||
display: none; | ||||||
} | ||||||
} | ||||||
|
||||||
.alert-input { | ||||||
|
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.