-
Notifications
You must be signed in to change notification settings - Fork 235
docs(split-view): added label for resizable examples for documentation #3800
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
Conversation
Tachometer resultsChromeaction-menu permalink
menu permalink
picker permalink
sidenav permalink
split-button permalink
split-view permalink
switch permalink
Firefoxaction-menu permalink
menu permalink
picker permalink
sidenav permalink
split-button permalink
split-view permalink
switch permalink
|
|
@Rajdeepc I added an idea to the original issue if you wanted to weigh in there! |
najikahalsema
left a comment
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.
Could you actually give a value to the labels here?
Adding a value on label will not change the aria-label in splitter since it is being hardcoded in the code
May be we should make it more dynamic and let the users add a dynamic value to the label? |
|
Sorry, I accidentally closed the PR when trying to make this comment. I think that the way the property is set though would allow for a custom label, though, right? Because the logic is And the consumer can set |
@najikahalsema If we set aria-label remains unchanged as this is expected since we are not adding
|
|
Okay. I gotcha. I guess we can merge like how it is now and make a follow up issue. |
Westbrook
left a comment
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.
label without a value is a non-sensical addition here. We should include a value in this change.
We should address the issue that was created herein, and in particular the reality that I wrote the logic to apply the aria-label value incorrectly. 🙈
const label =
this.label || this.resizable ? 'Resize the panels' : undefined;
Should likely be
const label =
this.label || (this.resizable ? 'Resize the panels' : undefined);
Or possibly:
const label =
this.resizable ? (this.label || 'Resize the panels') : undefined;
So that the label attribute actually does something here...
najikahalsema
left a comment
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.
Thanks, @Westbrook , for being able to articulate what I could not. ^^; Thanks for fixing this, Rajdeep.
#3800) * docs(split-view): added label for resizable examples for documentation * chore(split-view): updated readme and label logic --------- Co-authored-by: Rajdeep Chandra <rajdeepc@adobe.com> Co-authored-by: Najika Halsema Yoo <44980010+najikahalsema@users.noreply.github.com>
#3800) * docs(split-view): added label for resizable examples for documentation * chore(split-view): updated readme and label logic --------- Co-authored-by: Rajdeep Chandra <rajdeepc@adobe.com> Co-authored-by: Najika Halsema Yoo <44980010+najikahalsema@users.noreply.github.com>


Description
Added label property for resizable elements of split-view
Related issue(s)
Motivation and context
How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main.