-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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/buttonbase ts update #20060
Fix/buttonbase ts update #20060
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
fix error added TextAlignArray resolve deprecated fix lint error by removing textalign prop from textProps button base box updates update buttonbase to use new box and TS
6ce0309
to
dc64796
Compare
Builds ready [1083b90]
Page Load Metrics (1747 ± 66 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #20060 +/- ##
========================================
Coverage 69.37% 69.37%
========================================
Files 987 986 -1
Lines 37292 37296 +4
Branches 10012 10020 +8
========================================
+ Hits 25869 25873 +4
Misses 11423 11423
|
LGTM! |
Builds ready [3ab4438]
Page Load Metrics (1589 ± 35 ms)
Bundle size diffs
|
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.
Looking good. Some things I noticed while testing storybook
- Text is blue on hover when the as prop is an
a
tag
These may have been existing bugs so if you want to create another issue and fix them there that's fine too
ui/components/component-library/button-base/button-base.test.tsx
Outdated
Show resolved
Hide resolved
17b04a4
to
3ab4438
Compare
Builds ready [bce2295]
Page Load Metrics (1510 ± 35 ms)
Bundle size diffs
|
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.
ui/components/component-library/button-base/button-base.stories.tsx
Outdated
Show resolved
Hide resolved
Builds ready [79134d5]
Page Load Metrics (1885 ± 57 ms)
Bundle size diffs
|
@georgewrmarshall that error is inconsistent because I don't have it. |
Builds ready [b428eb9]
Page Load Metrics (1654 ± 58 ms)
Bundle size diffs
|
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.
Still seems like you can pass wrong attributes down to the root HTML element
* fixing as issue * strict prop fixes for george
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.
LGTM with one nit
Builds ready [1c975ea]
Page Load Metrics (1544 ± 40 ms)
Bundle size diffs
|
Builds ready [17988bd]
Page Load Metrics (1553 ± 37 ms)
Bundle size diffs
|
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.
LGTM 🔥🔥🔥
- Tested changing
as
prop betweena
andbutton
and adding different HTML element specific props likeexternalLink
anddisabled
. No incorrect HTML attributes were added and functionality and style was still applied. ✅ - Checked stories and documentation ✅
- Pulled branch to ensure no linting issues in stories or test files ✅
- No use of deprecated components or code e.g consts, js components etc ✅
Builds ready [779ac5e]
Page Load Metrics (1652 ± 55 ms)
Bundle size diffs
|
Explanation
Update ButtonBase to use TS. No visual change
*Fixes 18886
Screenshots/Screencaps
Before
After
Manual Testing Steps
yarn jest ui/components/component-library/button-base
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.