-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Tab bar - Add suffix to hidden tab bar 'li' elements #11622
Conversation
Signed-off-by: Akhilesh Raju <[email protected]>
@msujew @vince-fugnitto if you can, would appreciate your review 🙂 |
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.
@akhileshraju thank you for your first contribution, I only have some minor comments 👍
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.
The changes work well for me 👍
@msujew do you mind reviewing as well?
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.
The changes look reasonable to me and don't seem to cause any regressions. Looks good 👍 (after applying the comments by Vince of course)
Signed-off-by: Akhilesh Raju [email protected]
Issue
Non unique ID values for
<li>
elements in the hidden and visible tab bar's on the left and right side.Without this, when I try writing a playwright page model to click the tab bar button using the Playwright
Locator
, I get a "strict mode" error from Playwright which signifies that it got more than one element for given ID.AFAIK, element ID's must be unique across the DOM.
https://community.theia-ide.org/t/dom-element-id-field-not-unique-for-tab-bar-entries/2563
What it does
Code changes to add a suffix
-hidden
to the<li>
elements to ensure there is no ID clash.Before the fix
After the fix
How to test
-hidden
suffixReview checklist
Reminder for reviewers