Skip to content

Commit b5c87f5

Browse files
committed
Accessible markup additions and hover state for menu
1 parent 7141740 commit b5c87f5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/assets/stylesheets/partials/_source_tabs.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
a {
8686
background-color: $color-gray-950;
8787
width: 100%;
88+
89+
&:hover {
90+
border-color: $color-gray-950;
91+
background-color: $color-gray-900;
92+
}
8893
}
8994

9095
}

app/javascript/source_tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ container.classList.add('has-js')
77

88
primary.insertAdjacentHTML('beforeend', `
99
<li class="-more">
10-
<button type="button" aria-haspopup="true" aria-expanded="false">
10+
<button type="button" aria-haspopup="true" aria-expanded="false" aria-controls="more-options">
1111
More <i class="fa-light fa-chevron-down"></i>
1212
</button>
13-
<ul class="-secondary">
13+
<ul class="-secondary" id="more-options" aria-label="More options">
1414
${primary.innerHTML}
1515
</ul>
1616
</li>

0 commit comments

Comments
 (0)