Skip to content

Commit 3a2ad9f

Browse files
committed
fix: visually hide NavToggle icon text; fix for visual regression after merging down #1227
1 parent e37df7d commit 3a2ad9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/uikit-workshop/src/scripts/components/pl-nav/src/NavList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const NavList = props => {
3636
aria-controls={category}
3737
onClick={elem.toggleSpecialNavPanel}
3838
>
39-
{category}
39+
Expand / Collapse {category} Panel
4040
</NavToggle>
4141
)}
4242
</div>

packages/uikit-workshop/src/scripts/components/pl-nav/src/NavToggle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const NavToggle = props => {
77
role="tab"
88
{...props}
99
>
10-
{props.children}
10+
<span class="is-vishidden">{props.children}</span>
1111
<span
1212
class="pl-c-nav__link-icon"
1313
dangerouslySetInnerHTML={{

0 commit comments

Comments
 (0)