Skip to content

Commit

Permalink
fix issue with button
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons committed Oct 2, 2024
1 parent bc79cb9 commit 4970ac2
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ $button-shadow-size: 3px;
color: var(--ons-color-text-inverse);
display: flex;
align-items: center;
padding: 0.75rem 1.5rem;
padding: 0.75rem 1rem;
// Required for Google Tag Manager
pointer-events: none;
position: relative;
&:has(> .ons-icon + .ons-btn__text) {
padding-left: 1rem;
}
&:has(> .ons-btn__text + .ons-icon) {
padding-right: 1rem;
}
// &:has(> .ons-icon + .ons-btn__text) {
// padding-left: 1rem;
// }
// &:has(> .ons-btn__text + .ons-icon) {
// padding-right: 1rem;
// }
.ons-icon {
fill: var(--ons-color-text-inverse);
height: 18px;
Expand Down Expand Up @@ -114,30 +114,18 @@ $button-shadow-size: 3px;

&--small & {
&__inner {
padding: 0.5625rem 1.25rem;
padding: 0.5rem 0.75rem;
.ons-icon {
height: 16px;
width: 16px;
}
&:has(> .ons-icon + .ons-btn__text) {
padding-left: 0.75rem;
}
&:has(> .ons-btn__text + .ons-icon) {
padding-right: 0.75rem;
}
}
}

&--small.ons-btn--ghost &,
&--mobile & {
&__inner {
padding: 0.5625rem 1.25rem;
&:has(> .ons-icon + .ons-btn__text) {
padding-left: 0.75rem;
}
&:has(> .ons-btn__text + .ons-icon) {
padding-right: 0.75rem;
}
padding: 0.5rem 0.75rem;
}
}

Expand Down

0 comments on commit 4970ac2

Please sign in to comment.