Skip to content

Commit

Permalink
Merge pull request #2598 from SpareBank1/buttons-farger-bugfix
Browse files Browse the repository at this point in the history
Semantiske farger i buttons - bugfikser
  • Loading branch information
antidecaf authored Mar 4, 2025
2 parents c66c1a3 + 21b2440 commit 6419bab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 222 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Standard: Story = {
isExpanded={isExpanded}
onClick={() => setExpanded(!isExpanded)}
>
{isExpanded ? 'Vis mer' : 'Vis mindre'}
{isExpanded ? 'Vis mindre' : 'Vis mer'}
</InlineExpandButton>
</Paragraph>

Expand Down
12 changes: 5 additions & 7 deletions packages/ffe-buttons/less/base-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
align-items: center;
appearance: none;
border: 2px solid transparent;
border-radius: var(--ffe-v-buttons-border-radius);
border-radius: 6em;
color: var(--ffe-color-component-button-primary-foreground-default);
cursor: pointer;
display: flex;
Expand Down Expand Up @@ -71,22 +71,22 @@

.ffe-button--action {
background-color: var(--ffe-color-component-button-action-fill-default);
color: var(--ffe-color-default-neutral-inverted);
color: var(--ffe-color-component-button-action-foreground-default);
border: none;

:where(.ffe-button__icon) {
color: var(--ffe-color-default-neutral-inverted);
color: var(--ffe-color-component-button-action-foreground-default);
}

&:active {
transform: scale(0.97);
background-color: var(--ffe-color-default-feedback-success-strongest);
background-color: var(--ffe-color-component-button-action-fill-pressed);
}

@media (hover: hover) and (pointer: fine) {
&:hover:not(:active):not(.ffe-button--pressed) {
background-color: var(
--ffe-color-default-feedback-success-stronger
--ffe-color-component-button-action-fill-hover
);
}
}
Expand Down Expand Up @@ -232,7 +232,6 @@

.ffe-button--task {
--text-color: var(--ffe-color-foreground-emphasis);

background: transparent;
border-radius: 1.75rem;
border: none;
Expand All @@ -258,7 +257,6 @@
display: flex;
align-items: center;
justify-content: center;
margin: 0 var(--ffe-spacing-xs) 0 0;
transition: all var(--ffe-transition-duration) var(--ffe-ease);

:where(.ffe-icons) {
Expand Down
1 change: 0 additions & 1 deletion packages/ffe-buttons/less/buttons.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import 'theme';
@import 'button-group';
@import 'base-button';
@import 'inline-base-button';
7 changes: 4 additions & 3 deletions packages/ffe-buttons/less/inline-base-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}

&:focus {
box-shadow: 0 0 0 2px var(--ffe-v-button-shadow-color);
box-shadow: 0 0 0 2px var(--ffe-color-border-interactive-focus);
outline: none;
}

Expand Down Expand Up @@ -48,7 +48,8 @@
.ffe-inline-button--back {
background-color: var(--background-color);
color: var(--ffe-color-component-button-tertiary-foreground-default);
padding: var(--ffe-spacing-xs) var(--ffe-spacing-md);
padding: var(--ffe-spacing-xs) var(--ffe-spacing-md) var(--ffe-spacing-xs)
var(--ffe-spacing-sm);

.ffe-inline-button__label {
&::after {
Expand Down Expand Up @@ -162,7 +163,7 @@

@media (hover: hover) and (pointer: fine) {
&:hover {
color: var(--ffe-color-component-button-tertiary-border-hover);
color: var(--ffe-color-component-button-tertiary-foreground-hover);
background-color: var(
--ffe-color-component-button-tertiary-fill-hover
);
Expand Down
210 changes: 0 additions & 210 deletions packages/ffe-buttons/less/theme.less

This file was deleted.

0 comments on commit 6419bab

Please sign in to comment.