Skip to content

Conversation

@sarahszhou
Copy link
Contributor

@sarahszhou sarahszhou commented Mar 7, 2024

Description

Bug: fixes #3811
Adjusting the logic such that the label allows for a custom label, if it is defined

I have updated the label constant to consider this.label if it is defined. To test this out, I gave label the value of Resizable Split View Custom Label and ran on Storybook to verify that if label is defined, it overrides the default. See video:
https://github.com/adobe/spectrum-web-components/assets/55859693/e60be647-299a-4fa4-9838-0911eaa580b0

Motivation and context

How has this been tested?

  • Storybook
    1. Give label a string value (manually)
    2. Launch storybook
    3. Verify through the debugger console that the label is set to the custom label
  • Unit tests
    1. label gets set when specified on split-view

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

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.

@sarahszhou sarahszhou requested a review from Westbrook March 7, 2024 22:19
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2024

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.97 0.97 0.98
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 241.585 kB 228.963 kB 🏆 229.077 kB
Scripts 60.609 kB 54.683 kB 🏆 54.847 kB
Stylesheet 48.444 kB 42.392 kB 42.346 kB 🏆
Document 5.818 kB 5.176 kB 5.172 kB 🏆
Third Party 126.714 kB 126.712 kB 126.712 kB

Request Count

Category Latest Main Branch
Total 43 43 43
Scripts 35 35 35
Stylesheet 5 5 5
Document 1 1 1
Third Party 2 2 2

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2024

Tachometer results

Chrome

split-view permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 394 kB 34.41ms - 35.37ms - unsure 🔍
-1% - +2%
-0.47ms - +0.73ms
branch 385 kB 34.40ms - 35.13ms unsure 🔍
-2% - +1%
-0.73ms - +0.47ms
-
Firefox

split-view permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 394 kB 82.36ms - 86.28ms - faster ✔
0% - 9%
0.00ms - 7.64ms
branch 385 kB 84.86ms - 91.42ms unsure 🔍
-0% - +9%
+0.00ms - +7.64ms
-

@Rajdeepc Rajdeepc changed the title fix: [split-view]: update label attribute to be customizable fix(split-view): update label attribute to be customisable Mar 8, 2024
Copy link
Contributor

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Catching up main and will merge is we go green. Many thanks. 🙇🏼

@Westbrook Westbrook force-pushed the sazhou/acpc_hackathon_bug_3811 branch from 0c7a888 to e3317cc Compare March 14, 2024 13:45
@Westbrook Westbrook merged commit d9abed7 into main Mar 14, 2024
@Westbrook Westbrook deleted the sazhou/acpc_hackathon_bug_3811 branch March 14, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[split-view]: update label attribute to be customisable

3 participants