Skip to content

Commit

Permalink
fix: restore o-header buttons to design (#1916)
Browse files Browse the repository at this point in the history
* fix: use square buttons on o-header

* fix: fix text positioning on subscribe button, align ask ft padding to other buttons

* fix: fix lint issues
  • Loading branch information
frshwtr authored Jan 8, 2025
1 parent f202d72 commit cac2a4b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions components/o-header/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
'theme': 'mono',
)
);
border-radius: 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion components/o-header/src/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
display: flex;
align-items: center;
gap: 4px;
padding: 6px 8px;
padding: 4px 8px;
color: _oHeaderGet('header-ask-ft-button-text');
background-color: _oHeaderGet('header-ask-ft-button-background');
border-radius: 4px;
Expand Down
15 changes: 4 additions & 11 deletions components/o-header/src/scss/features/_drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
border-right: 1px solid _oHeaderGet('drawer-border');
// use a 2D transform because 3D are unsupported by IE9
transform: translateX(-100%);
transform: translate3d(
-100%,
0,
0
); // stylelint-disable-line declaration-block-no-duplicate-properties
transform: translate3d(-100%, 0, 0); // stylelint-disable-line declaration-block-no-duplicate-properties

// this is literally the specification example for will-change
will-change: transform;
Expand All @@ -38,11 +34,7 @@
&.o-header__drawer--open {
// use a 2D transform because 3D are unsupported by IE9
transform: translateX(0);
transform: translate3d(
0,
0,
0
); // stylelint-disable-line declaration-block-no-duplicate-properties
transform: translate3d(0, 0, 0); // stylelint-disable-line declaration-block-no-duplicate-properties
}
}
}
Expand Down Expand Up @@ -149,7 +141,7 @@
}

.o-header__drawer-button {
display: block;
width: 100%;
}

//
Expand Down Expand Up @@ -208,6 +200,7 @@
'size': 'big',
)
);
border-radius: 0;
}

//
Expand Down
1 change: 1 addition & 0 deletions components/o-header/src/scss/features/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
'size': 'big',
)
);
border-radius: 0;
display: flex;
gap: 10px;
align-items: center;
Expand Down
1 change: 1 addition & 0 deletions components/o-header/src/scss/features/_transparent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'theme': 'inverse',
)
);
border-radius: 0;
}

.o-header__nav-link,
Expand Down

0 comments on commit cac2a4b

Please sign in to comment.