Skip to content

Commit

Permalink
no more --text for button
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Dec 15, 2024
1 parent 4c6eeef commit ab9908d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions src/lib/buttons/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
height: 2.5rem;
padding: 0 1.5rem;
border-radius: var(--m3-button-shape);
color: rgb(var(--text));
transition: all 200ms;
align-items: center;
Expand Down Expand Up @@ -67,18 +66,18 @@
.m3-container:enabled.elevated {
background-color: rgb(var(--m3-scheme-surface-container-low));
--text: var(--m3-scheme-primary);
color: rgb(var(--m3-scheme-primary));
box-shadow: var(--m3-util-elevation-1);
}
.m3-container:enabled.filled {
background-color: rgb(var(--m3-scheme-primary));
--text: var(--m3-scheme-on-primary);
color: rgb(var(--m3-scheme-on-primary));
}
.m3-container:enabled.tonal {
background-color: rgb(var(--m3-scheme-secondary-container));
--text: var(--m3-scheme-on-secondary-container);
color: rgb(var(--m3-scheme-on-secondary-container));
}
.m3-container.outlined {
Expand All @@ -87,13 +86,13 @@
}
.m3-container:enabled.outlined {
border: 0.0625rem solid rgb(var(--m3-scheme-outline));
--text: var(--m3-scheme-primary);
color: rgb(var(--m3-scheme-primary));
}
.m3-container.text {
background-color: transparent;
padding: 0 0.75rem;
--text: var(--m3-scheme-primary);
color: rgb(var(--m3-scheme-primary));
}
.m3-container.text.icon-left {
padding-right: 1rem;
Expand Down
11 changes: 5 additions & 6 deletions src/lib/buttons/ButtonLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
height: 2.5rem;
padding: 0 1.5rem;
border-radius: var(--m3-button-shape);
color: rgb(var(--text));
transition: all 200ms;
align-items: center;
Expand Down Expand Up @@ -60,30 +59,30 @@
.m3-container.elevated {
background-color: rgb(var(--m3-scheme-surface-container-low));
--text: var(--m3-scheme-primary);
color: rgb(var(--m3-scheme-primary));
box-shadow: var(--m3-util-elevation-1);
}
.m3-container.filled {
background-color: rgb(var(--m3-scheme-primary));
--text: var(--m3-scheme-on-primary);
color: rgb(var(--m3-scheme-on-primary));
}
.m3-container.tonal {
background-color: rgb(var(--m3-scheme-secondary-container));
--text: var(--m3-scheme-on-secondary-container);
color: rgb(var(--m3-scheme-on-secondary-container));
}
.m3-container.outlined {
background-color: transparent;
border: 0.0625rem solid rgb(var(--m3-scheme-outline));
--text: var(--m3-scheme-primary);
color: rgb(var(--m3-scheme-primary));
}
.m3-container.text {
background-color: transparent;
padding: 0 0.75rem;
--text: var(--m3-scheme-primary);
color: rgb(var(--m3-scheme-primary));
}
.m3-container.text.icon-left {
padding-right: 1rem;
Expand Down

0 comments on commit ab9908d

Please sign in to comment.