Skip to content

Commit

Permalink
chore(button): remove unused styles
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580031279
  • Loading branch information
asyncLiz authored and copybara-github committed Nov 7, 2023
1 parent bddf031 commit f08ecce
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions button/internal/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
}

.button {
border-start-start-radius: var(--_container-shape-start-start);
border-start-end-radius: var(--_container-shape-start-end);
border-end-start-radius: var(--_container-shape-end-start);
border-end-end-radius: var(--_container-shape-end-end);
cursor: inherit;
display: inline-flex;
align-items: center;
Expand Down Expand Up @@ -117,31 +121,18 @@

@media (forced-colors: active) {
.button::before {
content: '';
box-sizing: border-box;
border: 1px solid CanvasText;
border-radius: inherit;
inset: 0;
pointer-events: none;
position: absolute;
}

:host([disabled]) .button {
--_disabled-icon-color: GrayText;
--_disabled-icon-opacity: 1;
--_disabled-container-opacity: 1;
--_disabled-label-text-color: GrayText;
--_disabled-label-text-opacity: 1;
}
}

.button,
md-ripple {
border-start-start-radius: var(--_container-shape-start-start);
border-start-end-radius: var(--_container-shape-start-end);
border-end-start-radius: var(--_container-shape-end-start);
border-end-end-radius: var(--_container-shape-end-end);
}

.button::after,
.button::before,
md-elevation,
md-ripple {
Expand All @@ -158,8 +149,4 @@
padding-inline-start: var(--_with-trailing-icon-leading-space);
padding-inline-end: var(--_with-trailing-icon-trailing-space);
}

.link-button-wrapper {
inline-size: 100%;
}
}

0 comments on commit f08ecce

Please sign in to comment.