mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-24 23:49:14 +08:00
feat(ShareSheet): improve accessibility (#6208)
This commit is contained in:
parent
cee33cb6dd
commit
aa125ac06b
@ -83,6 +83,8 @@ export default createComponent({
|
|||||||
<div class={bem('options', { border: showBorder })}>
|
<div class={bem('options', { border: showBorder })}>
|
||||||
{options.map((option, index) => (
|
{options.map((option, index) => (
|
||||||
<div
|
<div
|
||||||
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
class={bem('option')}
|
class={bem('option')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
this.onSelect(option, index);
|
this.onSelect(option, index);
|
||||||
|
@ -35,15 +35,6 @@
|
|||||||
.hairline-top(@cell-border-color, @padding-md);
|
.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 {
|
&::-webkit-scrollbar {
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user