Revert "Revert "feat: upgrade rc-slider, support keyboard accessibility""

This reverts commit 551807cd91.
This commit is contained in:
Wei Zhu 2017-07-30 16:06:53 +08:00
parent 551807cd91
commit 0b8b0d2deb
4 changed files with 26 additions and 1 deletions

View File

@ -2278,6 +2278,7 @@ exports[`renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:0%;"
tabindex="0"
/>
<div
class="ant-slider-mark"

View File

@ -518,6 +518,7 @@ exports[`renders ./components/grid/demo/playground.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:20%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -615,6 +616,7 @@ exports[`renders ./components/grid/demo/playground.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:40%;"
tabindex="0"
/>
<div
class="ant-slider-mark"

View File

@ -23,6 +23,7 @@ exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:30%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -49,6 +50,7 @@ exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-1"
role="slider"
style="left:20%;"
tabindex="0"
/>
<div
aria-disabled="false"
@ -58,6 +60,7 @@ exports[`renders ./components/slider/demo/basic.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-2"
role="slider"
style="left:50%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -98,6 +101,7 @@ exports[`renders ./components/slider/demo/event.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:30%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -124,6 +128,7 @@ exports[`renders ./components/slider/demo/event.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-1"
role="slider"
style="left:20%;"
tabindex="0"
/>
<div
aria-disabled="false"
@ -133,6 +138,7 @@ exports[`renders ./components/slider/demo/event.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-2"
role="slider"
style="left:50%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -169,6 +175,7 @@ exports[`renders ./components/slider/demo/icon-slider.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:0%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -209,6 +216,7 @@ exports[`renders ./components/slider/demo/input-number.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:0%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -295,6 +303,7 @@ exports[`renders ./components/slider/demo/input-number.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:0%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -400,6 +409,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:37%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -470,6 +480,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-1"
role="slider"
style="left:26%;"
tabindex="0"
/>
<div
aria-disabled="false"
@ -479,6 +490,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-2"
role="slider"
style="left:37%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -552,6 +564,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:37%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -625,6 +638,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:37%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -698,6 +712,7 @@ exports[`renders ./components/slider/demo/mark.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:37%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -756,6 +771,7 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:0%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -782,6 +798,7 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="left:0%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -818,6 +835,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-handle"
role="slider"
style="bottom:30%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -848,6 +866,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-1"
role="slider"
style="bottom:20%;"
tabindex="0"
/>
<div
aria-disabled="false"
@ -857,6 +876,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-2"
role="slider"
style="bottom:50%;"
tabindex="0"
/>
<div
class="ant-slider-mark"
@ -904,6 +924,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-1"
role="slider"
style="bottom:26%;"
tabindex="0"
/>
<div
aria-disabled="false"
@ -913,6 +934,7 @@ exports[`renders ./components/slider/demo/vertical.md correctly 1`] = `
class="ant-slider-handle ant-slider-handle-2"
role="slider"
style="bottom:37%;"
tabindex="0"
/>
<div
class="ant-slider-mark"

View File

@ -61,7 +61,7 @@
"rc-progress": "~2.1.2",
"rc-rate": "~2.1.1",
"rc-select": "~6.8.6",
"rc-slider": "~8.2.0",
"rc-slider": "~8.3.0",
"rc-steps": "~2.5.1",
"rc-switch": "~1.5.1",
"rc-table": "~5.4.0",