Skip to content
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(Avatar): loosen props for avatar aria-label component #1544

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

booc0mtaco
Copy link
Contributor

Summary:

  • mark ariaLabel prop as optional
  • ensure labels are always generated via additional tests

Test Plan:

  • Wrote automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, but I want to keep the details secret
  • Manually tested my changes, and here are the details:
    • Create an alpha publish and try out in edu-stack or traject as a sanity check if changes affect build or deploy, or are breaking, such as token changes, widely used component updates, hooks changes, and major dependency upgrades.

- mark ariaLabel prop as optional
- ensure labels are always generated via additional tests
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #1544 (7350b7a) into next (89eba6b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             next    #1544   +/-   ##
=======================================
  Coverage   91.87%   91.87%           
=======================================
  Files         285      285           
  Lines        4294     4295    +1     
  Branches      792      792           
=======================================
+ Hits         3945     3946    +1     
  Misses        324      324           
  Partials       25       25           
Impacted Files Coverage Δ
src/components/Avatar/Avatar.stories.ts 100.00% <100.00%> (ø)
src/components/Avatar/Avatar.tsx 88.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@booc0mtaco booc0mtaco requested a review from a team March 13, 2023 20:43
@github-actions
Copy link

size-limit report 📦

Path Size
components 121.45 KB (+0.01% 🔺)
styles 3.1 KB (0%)

Copy link
Contributor

@jinlee93 jinlee93 left a comment

Choose a reason for hiding this comment

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

🛠️

@booc0mtaco
Copy link
Contributor Author

@jeremiah-clothier this also fixes the display of "false" that was appearing in the default aria-label text

@booc0mtaco booc0mtaco merged commit 4ab9183 into next Mar 13, 2023
@booc0mtaco booc0mtaco deleted the aholloway/EDS-867 branch March 13, 2023 21:17
@booc0mtaco booc0mtaco mentioned this pull request Mar 17, 2023
booc0mtaco added a commit that referenced this pull request Mar 17, 2023
## [11.0.0](v10.0.0...v11.0.0) (2023-03-17)


### ⚠ BREAKING CHANGES

* add `indeterminate` prop to <Checkbox> that's separate from `checked` (#1520)

### Features

* add `indeterminate` prop to <Checkbox> that's separate from `checked` ([#1520](#1520)) ([d8e2cc4](d8e2cc4))
* **LoadingIndicator:** extract and use SVG animation directly ([#1540](#1540)) ([6e315ea](6e315ea))
* **menu:** add Menu.PlainButton as a minimally styled Menu button ([#1516](#1516)) ([8268d8e](8268d8e))


### Bug Fixes

* actually use our shared prettier config ([c98ea51](c98ea51))
* **Avatar:** loosen props for avatar aria-label component ([#1544](#1544)) ([4ab9183](4ab9183))
* markdown story styling ([#1536](#1536)) ([89eba6b](89eba6b))
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.

2 participants