-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix Nav Submenu block Link UI text control #46243
Conversation
Size Change: +17 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Capture.on.2022-12-01.at.19-09-18.mov
Thanks for solving this one. We just need to strip the HTML as shown in this video.
That functionality isn't a default part of link control because not all values that are passed in are HTML but maybe it should be...?
I feel like it should be. I'll open up a follow-up to this PR to tackle that though. For now I've done the same thing as in UPDATE: Added in #46263 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add hasTextControl to submenu LinkControl * Clean up unnecessary prop={ true } in submenu LinkControl * Add JSDoc for hasTextConrtol prop to LinkControl * Fix missing label in dropdown * Use stripHTML for the title/label
What?
Adds the text control to the navigation submenu link ui to match the normal navigation link ui.
Why?
Fixes #46206
How?
Adds the
hasTextControl
prop to the<LinkControl>
component.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before
After