Compare commits

..

No commits in common. "8214bf8d0211f2352886d10ec2c74dc71a848119" and "fe7f5e28d7a86f8f669b40bdb2c6cb6e8125c4fa" have entirely different histories.

15 changed files with 9 additions and 33 deletions

View File

@ -117,7 +117,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch"
style="font-size: 24px;"
tabindex="0"
aria-checked="false"
>
<div class="van-switch__node">

View File

@ -222,7 +222,6 @@ exports[`should render AddressEdit with props correctly 1`] = `
<div role="switch"
class="van-switch van-switch--on"
style="font-size: 24px;"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">

View File

@ -52,7 +52,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch"
style="font-size: 24px;"
tabindex="0"
aria-checked="false"
>
<div class="van-switch__node">

View File

@ -172,7 +172,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch"
style="font-size: 20px;"
tabindex="0"
aria-checked="false"
>
<div class="van-switch__node">

View File

@ -115,12 +115,7 @@ export default defineComponent({
const text = slots.error ? slots.error() : props.errorText;
if (text) {
return (
<div
role="button"
class={bem('error-text')}
tabindex={0}
onClick={clickErrorText}
>
<div class={bem('error-text')} onClick={clickErrorText}>
{text}
</div>
);

View File

@ -5,10 +5,7 @@ exports[`should render error slot correctly 1`] = `
class="van-list"
aria-busy="false"
>
<div role="button"
class="van-list__error-text"
tabindex="0"
>
<div class="van-list__error-text">
Custom Error
</div>
<div class="van-list__placeholder">

View File

@ -173,8 +173,6 @@ export default defineComponent({
role="menuitem"
class={[bem('action', { disabled, 'with-icon': icon }), className]}
style={{ color }}
tabindex={disabled ? undefined : 0}
aria-disabled={disabled || undefined}
onClick={() => onClickAction(action, index)}
>
{icon && (

View File

@ -3,7 +3,6 @@
exports[`should allow to custom the className of action 1`] = `
<div role="menuitem"
class="van-popover__action foo"
tabindex="0"
>
<div class="van-popover__action-text van-hairline--bottom">
Option
@ -23,7 +22,6 @@ exports[`should change icon class prefix when using icon-prefix prop 1`] = `
>
<div role="menuitem"
class="van-popover__action van-popover__action--with-icon"
tabindex="0"
>
<i class="van-badge__wrapper my-icon my-icon-success van-popover__action-icon">
</i>

View File

@ -196,7 +196,7 @@ export default defineComponent({
style={style}
class={bem('item')}
tabindex={disabled ? undefined : 0}
aria-setsize={count}
aria-setsize={+count}
aria-posinset={score}
aria-checked={!isVoid}
onClick={onClickItem}

View File

@ -47,7 +47,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch"
style="font-size: 24px;"
tabindex="0"
aria-checked="false"
>
<div class="van-switch__node">

View File

@ -295,9 +295,9 @@ export default defineComponent({
role="slider"
class={getButtonClassName(index)}
tabindex={props.disabled ? undefined : 0}
aria-valuemin={props.min}
aria-valuemin={+props.min}
aria-valuenow={current}
aria-valuemax={props.max}
aria-valuemax={+props.max}
aria-disabled={props.disabled || undefined}
aria-readonly={props.readonly || undefined}
aria-orientation={props.vertical ? 'vertical' : 'horizontal'}

View File

@ -313,9 +313,9 @@ export default defineComponent({
// set keyboard in modern browsers
inputmode={props.integer ? 'numeric' : 'decimal'}
placeholder={props.placeholder}
aria-valuemax={props.max}
aria-valuemin={props.min}
aria-valuenow={current.value}
aria-valuemax={+props.max}
aria-valuemin={+props.min}
aria-valuenow={+current.value}
onBlur={onBlur}
onInput={onInput}
onFocus={onFocus}

View File

@ -206,7 +206,7 @@ exports[`should render demo and match snapshot 1`] = `
inputmode="decimal"
aria-valuemax="Infinity"
aria-valuemin="1"
aria-valuenow="1.0"
aria-valuenow="1"
>
<button type="button"
class="van-stepper__plus van-haptics-feedback"

View File

@ -68,7 +68,6 @@ export default defineComponent({
disabled,
})}
style={style}
tabindex={disabled ? undefined : 0}
aria-checked={checked}
onClick={onClick}
>

View File

@ -4,7 +4,6 @@ exports[`should render demo and match snapshot 1`] = `
<div>
<div role="switch"
class="van-switch van-switch--on"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">
@ -23,7 +22,6 @@ exports[`should render demo and match snapshot 1`] = `
<div>
<div role="switch"
class="van-switch van-switch--on van-switch--loading"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">
@ -48,7 +46,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch van-switch--on"
style="font-size: 24px;"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">
@ -59,7 +56,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch van-switch--on"
style="background-color: rgb(238, 10, 36);"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">
@ -69,7 +65,6 @@ exports[`should render demo and match snapshot 1`] = `
<div>
<div role="switch"
class="van-switch van-switch--on"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">
@ -86,7 +81,6 @@ exports[`should render demo and match snapshot 1`] = `
<div role="switch"
class="van-switch van-switch--on"
style="font-size: 24px;"
tabindex="0"
aria-checked="true"
>
<div class="van-switch__node">