Skip to content
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

Slider: Media Seek Slider example #1863

Merged
merged 25 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bc10a95
updated seek slider
jongund Apr 21, 2021
17dceae
updated seek slider references
jongund Apr 21, 2021
a1cdf05
added exception for HTML validation
jongund Apr 21, 2021
6e0966c
update the seek example references
jongund Apr 21, 2021
ffadbe3
updated documentation
jongund Apr 22, 2021
39b1b4e
update accessibility documentation
jongund May 4, 2021
fe5e7e7
Updated accessibility documentation
jongund May 4, 2021
4334abe
updated accessibility documentation
jongund May 4, 2021
456cac5
Merge branch 'slider-seek' of github.com:w3c/aria-practices into slid…
jongund May 4, 2021
3e23d5f
updated example to include in the aria-valuetext the total time on lo…
jongund May 5, 2021
d204527
updated documentation
jongund May 5, 2021
7070696
updated guidance for using fill-opacity
jongund May 12, 2021
b150fd5
changed label to 'Seek'
jongund May 12, 2021
b2e0ea1
merge main and resolve conflicts
mcking65 May 23, 2021
d34c42e
Update links to similar examples
mcking65 May 23, 2021
c76975d
Fix href for temp slider link and add seek slider to similar examples…
mcking65 May 23, 2021
919ebe3
Shorten name of page
mcking65 May 23, 2021
3b55cd5
Warning: change increment and decrement to increase and decrease
mcking65 May 23, 2021
a40e3db
editorial revision to intro for clarity
mcking65 May 24, 2021
bbbf50a
Make accessibility features documentation consistent with latest word…
mcking65 May 24, 2021
ba1e4fe
Remove unnecessary style from keyboard support h2
mcking65 May 24, 2021
c19ba69
Editorial revisions to keyboard and attribute documentation for clarity
mcking65 May 24, 2021
42d8ad2
Replace q tags inside code tags with quote chars
mcking65 May 24, 2021
0b1f75b
Remove accidental inclusion of temp file
mcking65 May 24, 2021
ac3c3b6
Make links to temperature slider have text that matches page title
mcking65 May 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vnurc
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ The “row” role is unnecessary for element “tr”.
Attribute “aria-activedescendant” value should either refer to a descendant element, or should be accompanied by attribute “aria-owns”.
# https://github.com/w3c/aria-practices/issues/1678
Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections.
# https://github.com/validator/validator/issues/1096
Bad value “none” for attribute “role” on element “svg”.
4 changes: 2 additions & 2 deletions aria-practices.html
Original file line number Diff line number Diff line change
Expand Up @@ -2361,8 +2361,8 @@ <h3>Slider</h3>
<section class="notoc">
<h4>Examples</h4>
<ul>
<li><a href="examples/slider/slider-color-viewer.html">Color Viewer Slider Examples</a>: Demonstrates using three horizontally aligned sliders to make a color viewer.</li>
<li><a href="examples/slider/slider-2.html">Slider Examples with aria-orientation and aria-valuetext</a>: Three thermostat control sliders that demonstrate using aria-orientation and aria-valuetext.</li>
<li><a href="examples/slider/slider-color-viewer.html">Color Viewer Slider Example</a>: Demonstrates using three horizontally aligned sliders to make a color viewer.</li>
<li><a href="examples/slider/slider-seek.html">Media Seek Slider Example</a>: The seek slider converts a seconds value in to minutes and seconds for <code>aria-valuetext</code>.</li>
</ul>
</section>

Expand Down
17 changes: 8 additions & 9 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ <h2 id="examples_by_role_label">Examples by Role</h2>
<ul>
<li><a href="menu-button/menu-button-links.html">Navigation Menu Button</a></li>
<li><a href="menubar/menubar-navigation.html">Navigation Menubar</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -303,8 +304,8 @@ <h2 id="examples_by_role_label">Examples by Role</h2>
<td>
<ul>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -588,6 +589,7 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<li><a href="radio/radio-activedescendant.html">Radio Group Using aria-activedescendant</a></li>
<li><a href="radio/radio.html">Radio Group Using Roving tabindex</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="table/table.html">Table</a></li>
<li><a href="tabs/tabs-1/tabs.html">Tabs with Automatic Activation</a></li>
Expand Down Expand Up @@ -625,6 +627,7 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<li><a href="radio/radio-activedescendant.html">Radio Group Using aria-activedescendant</a></li>
<li><a href="radio/radio.html">Radio Group Using Roving tabindex</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="tabs/tabs-1/tabs.html">Tabs with Automatic Activation</a></li>
<li><a href="tabs/tabs-2/tabs.html">Tabs with Manual Activation</a></li>
Expand Down Expand Up @@ -676,10 +679,6 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<td><code>aria-multiselectable</code></td>
<td><a href="listbox/listbox-rearrangeable.html">Listboxes with Rearrangeable Options</a></td>
</tr>
<tr>
<td><code>aria-orientation</code></td>
<td><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></td>
</tr>
<tr>
<td><code>aria-owns</code></td>
<td><a href="treeview/treeview-navigation.html">Navigation Treeview</a></td>
Expand Down Expand Up @@ -767,8 +766,8 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<ul>
<li><a href="meter/meter.html">Meter</a></li>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
</ul>
</td>
Expand All @@ -779,8 +778,8 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<ul>
<li><a href="meter/meter.html">Meter</a></li>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="toolbar/toolbar.html">Toolbar</a></li>
</ul>
Expand All @@ -792,8 +791,8 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<ul>
<li><a href="meter/meter.html">Meter</a></li>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="toolbar/toolbar.html">Toolbar</a></li>
</ul>
Expand All @@ -804,7 +803,7 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<td>
<ul>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-seek.html">Media Seek Slider with aria-valuetext</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="toolbar/toolbar.html">Toolbar</a></li>
</ul>
Expand Down
81 changes: 81 additions & 0 deletions examples/slider/css/slider-seek.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/* CSS Document */

.slider-seek .label {
font-weight: bold;
font-size: 125%;
}

.slider-seek svg {
forced-color-adjust: auto;
}

.slider-seek text {
font-weight: bold;
fill: currentColor;
font-family: sans-serif;
}

.slider-seek {
margin-top: 1em;
padding: 6px;
color: black;
}

.slider-slider .value {
position: relative;
top: 20px;
height: 1.5em;
font-size: 80%;
}

.slider-seek .temp-value {
padding-left: 24px;
font-size: 200%;
}

.slider-seek .rail {
stroke: currentColor;
stroke-width: 2px;
fill: currentColor;
fill-opacity: 25%;
}

.slider-seek .thumb {
stroke-width: 0;
fill: currentColor;
}

.slider-seek .focus-ring {
stroke: currentColor;
stroke-opacity: 0;
fill-opacity: 0;
stroke-width: 3px;
display: none;
}

.slider-seek .slider-group {
touch-action: pan-y;
}

.slider-seek .slider-group .value {
display: none;
}

/* Focus and hover styling */

.slider-seek.focus [role="slider"] {
color: #005a9c;
}

.slider-seek [role="slider"]:focus {
outline: none;
}

.slider-seek [role="slider"]:focus .focus-ring {
display: block;
stroke-opacity: 1;
}

.slider-seek [role="slider"]:focus .value {
display: block;
}
48 changes: 0 additions & 48 deletions examples/slider/css/text-slider.css

This file was deleted.

51 changes: 0 additions & 51 deletions examples/slider/css/vertical-slider.css

This file was deleted.

Loading