Open nikkimk opened 1 month ago
Category | Latest (report) | Main (report) | Branch (report) |
---|---|---|---|
Performance | 0.99 | 0.99 | 0.94 |
Accessibility | 1 | 1 | 1 |
Best Practices | 1 | 1 | 1 |
SEO | 1 | 0.92 | 0.92 |
PWA | 1 | 1 | 1 |
main
("Main"). Higher scores are better, but *note that the SEO scores on Netlify URLs are artifically constrained to 0.92.*
Category | Latest | Main | Branch |
---|---|---|---|
Total | 221.238 kB | 210.968 kB | 210.773 kB 🏆 |
Scripts | 53.413 kB | 48.609 kB | 48.458 kB 🏆 |
Stylesheet | 34.827 kB | 30.416 kB | 30.381 kB 🏆 |
Document | 6.027 kB | 5.321 kB | 5.32 kB 🏆 |
Font | 126.971 kB | 126.622 kB | 126.614 kB 🏆 |
Category | Latest | Main | Branch |
---|---|---|---|
Total | 45 | 45 | 45 |
Scripts | 37 | 37 | 37 |
Stylesheet | 5 | 5 | 5 |
Document | 1 | 1 | 1 |
Font | 2 | 2 | 2 |
@nikkimk Can you catch up to main
and add some documentation on this?
Can we add a relevant test for this
I have added a couple of tests and updated the logic as well
Think about how this will render
<sp-progress-bar label="Loading" indeterminate>abcdefgh</sp-progress-bar>
@Rajdeepc What is the desired behavior for this use case?
Think about how this will render
<sp-progress-bar label="Loading" indeterminate>content</sp-progress-bar>
@Rajdeepc What is the desired behavior for this use case?
In this case <sp-progress-bar label="Loading" indeterminate>abcdefgh</sp-progress-bar>
when both label is present and content are present then, both of them will exist inside slot
sp-field-label
which is logically not so correct.
Either of them should be present in sp-filed-label
. There shouldn't be a scenario when both label
and slot content
are present inside slot
Think about how this will render
<sp-progress-bar label="Loading" indeterminate>content</sp-progress-bar>
@Rajdeepc What is the desired behavior for this use case?
In this case
<sp-progress-bar label="Loading" indeterminate>abcdefgh</sp-progress-bar>
when both label is present and content are present then, both of them will exist insideslot
sp-field-label
which is logically not so correct. Either of them should be present insp-filed-label
. There shouldn't be a scenario when bothlabel
andslot content
are present insideslot
So when both are present, is the attribute the only one that should exist?
Think about how this will render
<sp-progress-bar label="Loading" indeterminate>content</sp-progress-bar>
@Rajdeepc What is the desired behavior for this use case?
In this case
<sp-progress-bar label="Loading" indeterminate>abcdefgh</sp-progress-bar>
when both label is present and content are present then, both of them will exist insideslot
sp-field-label
which is logically not so correct. Either of them should be present insp-filed-label
. There shouldn't be a scenario when bothlabel
andslot content
are present insideslot
So when both are present, is the attribute the only one that should exist?
When both are present only the content should exist which in the above example is 'abcdefgh'.
When both are present only the content should exist which in the above example is 'abcdefgh'.
@Rajdeepc To make sure I'm understanding, is the following correct?
If label attribute is |
and default slot is |
then what appears visually should be | and the aria-label should be |
---|---|---|---|
empty | content |
content |
content |
abcdefgh |
empty | abcdefgh |
abcdefgh |
abcdefgh |
content |
content |
abcdefgh |
empty | empty | empty | empty |
abcdefgh
In the third row when both label="abcdefgh" and content are present, then what appears visually should becontent
@blunteshwar
abcdefgh
In the third row when both label="abcdefgh" and content are present, then what appears visually should be
content
What about the aria-label? Ideally sighted screenreader users should hear and see the same content?
@blunteshwar
abcdefgh
In the third row when both label="abcdefgh" and content are present, then what appears visually should be
content
What about the aria-label? Ideally sighted screenreader users should hear and see the same content?
Indeed
I think we have to make sure that when content is present then, aria-label =content
.
Making sure I capture that part of our discussion revolved around this previous issue: https://github.com/adobe/spectrum-web-components/issues/3146 and whether or not this is how progress bar should work.
Making sure I capture that part of our discussion revolved around this previous issue: #3146 and whether or not this is how progress bar should work.
I think since this is a part of a longer discussion chain, how do we feel we fix the related bug of duplicate label and take this in a follow up work?
Description
Removes duplicate label from progress bar.
Related issue(s)
How has this been tested?
<sp-progress-bar label="" size="m" indeterminate ></sp-progress-bar>
.label="label1"
.label1
notlabel1label1
.Types of changes
Checklist