Skip to content

Commit

Permalink
fix(typography): fix controls bug (#3130)
Browse files Browse the repository at this point in the history
* fix(typography): fix controls bug

* chore(typsets): fix mobile typeset controls bug

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
aledavila and kodiakhq[bot] authored Sep 19, 2022
1 parent 00c3c22 commit 75d038d
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions src/components/TypesetStyle/typeset-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@
.cds--typeset-style-controls-sticky {
align-items: center;
background-color: $white-0;
box-sizing: content-box;
position: sticky;
width: auto;
z-index: 2;
box-sizing: content-box;

@include breakpoint('md') {
flex-wrap: nowrap;
}
}

.cds--typeset-style-controls-sticky-stuck {
Expand Down Expand Up @@ -119,22 +124,14 @@
}

.cds--typeset-style-breakpoint-controls {
height: 3rem;
align-items: center;
display: flex;
height: 3rem;
overflow-x: auto;
white-space: nowrap;
padding-left: $spacing-05;
padding-right: 0;
white-space: nowrap;
width: 100%;

@include breakpoint('md') {
width: 62.5%;
}

@include breakpoint('lg') {
width: 50%;
}
}

.cds--typeset-style-screen-width-label {
Expand All @@ -147,21 +144,16 @@
height: 3rem;
border-top: 1px solid $gray-20;
border-bottom: 1px solid $gray-20;
padding-left: $spacing-05;
padding-right: $spacing-05;
display: grid;
grid-template-columns: auto 1fr auto;
padding-left: $spacing-05;
padding-right: $spacing-05;
width: 100%;

@include breakpoint('md') {
border-top: none;
border-bottom: none;
border-left: 1px solid $gray-20;
width: 37.5%;
}

@include breakpoint('lg') {
width: 50%;
}
}

Expand Down

1 comment on commit 75d038d

@vercel
Copy link

@vercel vercel bot commented on 75d038d Sep 19, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.