Skip to content

Commit

Permalink
add aria-labels for content
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Jun 16, 2020
1 parent 7484728 commit 9c3afd6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ${display("inline-flex")} :host {
cursor: pointer;
}
.label__hidden {
.label-hidden {
display: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ColorSwatchTemplate = html<ColorSwatch>`
class="${x =>
x.defaultSlottedNodes && x.defaultSlottedNodes.length
? "label"
: "label label__hidden"}"
: "label label-hidden"}"
>
<slot ${slotted("defaultSlottedNodes")}></slot>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const FastFrameStyles = css`
border-radius: calc(var(--corner-radius) * 1px);
}
.preview__expanded {
.preview-expanded {
transition: right .5s ease-in-out;
right: -10%;
}
Expand All @@ -317,7 +317,7 @@ export const FastFrameStyles = css`
visibility: visible;
}
.tab-panel__expanded {
.tab-panel-expanded {
opacity: 0;
transition: opacity .5s ease-in-out;
}
Expand All @@ -335,7 +335,7 @@ export const FastFrameStyles = css`
border-radius: calc(var(--corner-radius) * 1px);
}
.preview__expanded {
.preview-expanded {
right: -5%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const FastFrameTemplate = html<FastFrame>`
<fast-tab id="swatches-tab" title="Styles">${SwatchesIcon}</fast-tab>
<fast-tab id="density-tab" title="Density">${ScreenIcon}</fast-tab>
<fast-tab-panel id="contrast-tab-panel" class="${x =>
x.expanded ? "tab-panel__expanded" : ""}">
x.expanded ? "tab-panel-expanded" : ""}">
<div class="content">
<h1><span class="content-heading-highlight">Fast Frame</span> Dark Mode</h4>
<h2>Pre-built for both light and dark modes</h2>
Expand All @@ -42,7 +42,7 @@ export const FastFrameTemplate = html<FastFrame>`
</div>
</fast-tab-panel>
<fast-tab-panel id="palette-tab-panel" class="${x =>
x.expanded ? "tab-panel__expanded" : ""}">
x.expanded ? "tab-panel-expanded" : ""}">
<div class="content">
<h1><span class="content-heading-highlight">Fast Frame</span> Colors</h4>
<h2>Pre-existing color you can customize</h2>
Expand Down Expand Up @@ -124,7 +124,7 @@ export const FastFrameTemplate = html<FastFrame>`
</div>
</fast-tab-panel>
<fast-tab-panel id="swatches-tab-panel" class="${x =>
x.expanded ? "tab-panel__expanded" : ""}">
x.expanded ? "tab-panel-expanded" : ""}">
<div class="content">
<h1><span class="content-heading-highlight">Fast Frame</span> Styles</h4>
<h2>Adjust style settings on the fly</h2>
Expand Down Expand Up @@ -182,7 +182,7 @@ export const FastFrameTemplate = html<FastFrame>`
</div>
</fast-tab-panel>
<fast-tab-panel id="density-tab-panel" class="${x =>
x.expanded ? "tab-panel__expanded" : ""}">
x.expanded ? "tab-panel-expanded" : ""}">
<div class="content">
<h1><span class="content-heading-highlight">Fast Frame</span> Density</h4>
<h2>Quickly change and modify your layout</h2>
Expand Down Expand Up @@ -268,7 +268,7 @@ export const FastFrameTemplate = html<FastFrame>`
</fast-tab-panel>
</fast-tabs>
<fast-design-system-provider
class="${x => (x.expanded ? "preview preview__expanded" : "preview")}"
class="${x => (x.expanded ? "preview preview-expanded" : "preview")}"
base-layer-luminance="${x =>
x.darkMode
? StandardLuminance.DarkMode
Expand Down Expand Up @@ -318,10 +318,10 @@ export const FastFrameTemplate = html<FastFrame>`
<span class="sample-control-icon"></span>
<span class="sample-control-text">Label</span>
<div class="sample-control-actions">
<fast-button appearance="stealth"
<fast-button appearance="stealth" aria-label="Example 'share' button"
>${ShareIcon}</fast-button
>
<fast-button appearance="stealth"
<fast-button appearance="stealth" aria-label="Example 'more' button"
>${ContextIcon}</fast-button
>
</div>
Expand Down
4 changes: 2 additions & 2 deletions sites/fast-website/src/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="wrapper">
<header class="header">
<site-navigation>
<fast-anchor class="logo" slot="start" appearance="lightweight" href="/">
<fast-anchor class="logo" slot="start" appearance="lightweight" href="/" aria-label="Home">
<%= require("svg/icon-brand.svg") %>
FAST
</fast-anchor>
Expand Down Expand Up @@ -110,7 +110,7 @@ <h2 class="section-heading">Join the community</h2>
<li><p>&copy; 2020 Microsoft</p></li>
</ul>
</site-navigation>
<fast-anchor class="logo" appearance="lightweight" href="/">
<fast-anchor class="logo" appearance="lightweight" href="/" aria-label="Home">
<%= require("svg/icon-brand.svg") %>
</fast-anchor>
</footer>
Expand Down

0 comments on commit 9c3afd6

Please sign in to comment.