feat(ShareSheet): improve accessibility (#6208)

This commit is contained in:
neverland 2020-05-04 13:07:47 +08:00 committed by GitHub
parent cee33cb6dd
commit aa125ac06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -83,6 +83,8 @@ export default createComponent({
<div class={bem('options', { border: showBorder })}>
{options.map((option, index) => (
<div
role="button"
tabindex="0"
class={bem('option')}
onClick={() => {
this.onSelect(option, index);

View File

@ -35,15 +35,6 @@
.hairline-top(@cell-border-color, @padding-md);
}
// fix right-padding issue for overflow-x element
// see: https://stackoverflow.com/questions/10054870
&::after {
display: block;
flex-shrink: 0;
width: @padding-xs;
content: '';
}
&::-webkit-scrollbar {
height: 0;
}