-
Notifications
You must be signed in to change notification settings - Fork 566
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
PageHeader: Fixes layout issues on title and sub components #4669
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c7b4c55
layout shift issue resolve
broccolinisoup ceb02ed
do not inherit font and line styles from parent for description and n…
broccolinisoup 59375b4
font initial size and line hight only weight
broccolinisoup 137f184
Merge branch 'main' into pageheader-layout-shift
broccolinisoup ae2430e
Merge branch 'main' into pageheader-layout-shift
broccolinisoup e0cba61
set font styles to sub components
broccolinisoup 655365b
style update
broccolinisoup b643195
test fix
broccolinisoup 6ae320e
Create two-hotels-attend.md
broccolinisoup 080009a
test(vrt): update snapshots
broccolinisoup 3b0dee5
update line height to medium
broccolinisoup 9127877
test(vrt): update snapshots
broccolinisoup b199906
breadcrumb line height update
broccolinisoup 8ffa559
Merge branch 'main' into pageheader-layout-shift
broccolinisoup 4ce72c2
test(vrt): update snapshots
broccolinisoup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": patch | ||
--- | ||
|
||
PageHeader: Resolve layout shift issues on Title and Actions |
Binary file modified
BIN
+10 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-Files-Page-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
...PageHeader.test.ts-snapshots/PageHeader-Files-Page-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18 Bytes
(100%)
...ageHeader.test.ts-snapshots/PageHeader-Files-Page-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10 Bytes
(100%)
...est.ts-snapshots/PageHeader-Files-Page-on-Narrow-Viewport-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
...snapshots/PageHeader-Files-Page-on-Narrow-Viewport-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18 Bytes
(100%)
...napshots/PageHeader-Files-Page-on-Narrow-Viewport-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+163 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-12 Bytes
(100%)
...PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+157 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+150 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+166 Bytes
(100%)
...eader.test.ts-snapshots/PageHeader-Pull-Request-Page-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15 Bytes
(100%)
...er.test.ts-snapshots/PageHeader-Pull-Request-Page-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+161 Bytes
(100%)
...nents/PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-73 Bytes
(100%)
...eader.test.ts-snapshots/PageHeader-Pull-Request-Page-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+163 Bytes
(100%)
...shots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-12 Bytes
(100%)
...snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17 Bytes
(100%)
...ts/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+157 Bytes
(100%)
...est.ts-snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+150 Bytes
(100%)
...shots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+166 Bytes
(100%)
...hots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15 Bytes
(100%)
...s/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+161 Bytes
(100%)
...st.ts-snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-73 Bytes
(100%)
...hots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-670 Bytes
(93%)
...r.test.ts-snapshots/PageHeader-With-Custom-Navigation-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-653 Bytes
(93%)
...eader.test.ts-snapshots/PageHeader-With-Custom-Navigation-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-665 Bytes
(93%)
...est.ts-snapshots/PageHeader-With-Custom-Navigation-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-670 Bytes
(93%)
...s/PageHeader.test.ts-snapshots/PageHeader-With-Custom-Navigation-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-670 Bytes
(93%)
...r.test.ts-snapshots/PageHeader-With-Custom-Navigation-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-673 Bytes
(93%)
....test.ts-snapshots/PageHeader-With-Custom-Navigation-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-689 Bytes
(93%)
...st.ts-snapshots/PageHeader-With-Custom-Navigation-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-673 Bytes
(93%)
.../PageHeader.test.ts-snapshots/PageHeader-With-Custom-Navigation-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-673 Bytes
(93%)
....test.ts-snapshots/PageHeader-With-Custom-Navigation-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-235 Bytes
(99%)
...er.test.ts-snapshots/PageHeader-With-Description-Slot-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+6 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Description-Slot-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
...test.ts-snapshots/PageHeader-With-Description-Slot-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+52 Bytes
(100%)
...ts/PageHeader.test.ts-snapshots/PageHeader-With-Description-Slot-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-235 Bytes
(99%)
...er.test.ts-snapshots/PageHeader-With-Description-Slot-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-68 Bytes
(100%)
...r.test.ts-snapshots/PageHeader-With-Description-Slot-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-450 Bytes
(97%)
...est.ts-snapshots/PageHeader-With-Description-Slot-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...s/PageHeader.test.ts-snapshots/PageHeader-With-Description-Slot-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-68 Bytes
(100%)
...r.test.ts-snapshots/PageHeader-With-Description-Slot-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+158 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+39 Bytes
(100%)
.../PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-133 Bytes
(100%)
...ader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+132 Bytes
(100%)
...ponents/PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-12 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+24 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Page-Layout-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+22 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-With-Page-Layout-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+31 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-14 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Page-Layout-light-tritanopia-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't we be using
var(--text-body-lineHeight-medium, 1.4285)
?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.
Oh sorry I missed to update that! Just pushed it.