Repository navigation
Components: Add Heading - #29592
Components: Add Heading#29592
Conversation
|
Size Change: +989 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
|
Taking a look at the failing snapshots now. From what I can see... the |
|
@ItsJonQ Those diffs were unreadable, but it was because of the |
ItsJonQ
left a comment
There was a problem hiding this comment.
@sarayourfriend Thank you for adding this! I left a couple of comments for copy changes in README/types. That's it 😊
diegohaz
left a comment
There was a problem hiding this comment.
The code looks great! 👌
But I'm seeing this error when I try to run storybook:
packages/components/src/ui/heading/hook.ts:64:29 - error TS2345: Argument of type 'HeadingSize' is not assignable to parameter of type 'number | undefined'.
Type '"1"' is not assignable to type 'number | undefined'.
64 size: getHeadingFontSize( level ),
I guess whether getHeadingFontSize should accept strings or we should cast level to a number.
|
@diegohaz That's interesting, have you run |
Ah, you're right! I forgot to |
0250ebc to
672ebd6
Compare
ItsJonQ
left a comment
There was a problem hiding this comment.
🚀 from me! Thanks @sarayourfriend + @diegohaz !
The a11y prop improvement is really neat!
Description
Adds a new
Headingcomponent. Also upgrades G2 so make sure tonpm installwhen testing.@diegohaz can you review this from an a11y perspective, especially regarding not using the semantichxelements for this?How has this been tested?
Storybook and unit tests
Screenhots
Types of changes
New feature
Checklist: