Skip to content

Commit e76085f

Browse files
docs-botCopilot
andauthored
a11y: fix LandingHero text cutoff at 320×256 reflow viewport (#16465) (#61441)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7e3558d commit e76085f

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/landings/components/shared/LandingHero.module.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,12 @@
129129

130130
@media (max-width: 865px) {
131131
.landingHero {
132-
height: 28rem;
132+
height: auto;
133+
min-height: 28rem;
133134
flex-direction: column;
134135
text-align: center;
135-
justify-content: center;
136+
justify-content: flex-start;
137+
padding-top: 3rem;
136138
background-color: var(--bgColor-muted, var(--color-canvas-subtle, #f6f8fa));
137139
position: relative;
138140

@@ -184,12 +186,13 @@
184186

185187
@media (max-width: 480px) {
186188
.landingHero {
187-
height: 28rem;
189+
height: auto;
190+
min-height: 28rem;
188191
background-color: var(--bgColor-muted, var(--color-canvas-subtle, #f6f8fa));
189192
flex-direction: column;
190193
text-align: center;
191-
padding: 1rem 0 1rem;
192-
justify-content: center;
194+
padding: 3rem 0 1rem;
195+
justify-content: flex-start;
193196
position: relative;
194197

195198
background-position: center right;

0 commit comments

Comments
 (0)