From dde1c2b78faff401da9666cf0d97d6ca6237793f Mon Sep 17 00:00:00 2001 From: HeleneKassandra Date: Tue, 22 Aug 2023 16:50:10 +0200 Subject: [PATCH] fix(ffe-system-message): endre til material symbols BREAKING CHANGE: Endrer fra fill til color, fjerner svg-relatert styling --- .../less/system-message.less | 58 ++++--------------- 1 file changed, 12 insertions(+), 46 deletions(-) diff --git a/packages/ffe-system-message/less/system-message.less b/packages/ffe-system-message/less/system-message.less index e70cabb5a3..3f92f1914c 100644 --- a/packages/ffe-system-message/less/system-message.less +++ b/packages/ffe-system-message/less/system-message.less @@ -1,23 +1,5 @@ // System message // -// Markup: -//
-//
-// -// -// -// -// -//

Lorem ipsum dolor sit amet.

-// -//
-//
-// // --error - Error message // --info - Generic info // --news - News @@ -27,7 +9,6 @@ .ffe-system-message-wrapper { color: var(--ffe-farge-svart); - fill: currentColor; transition: height @ffe-transition-duration @ffe-ease-in-out-back; overflow: hidden; border-radius: @ffe-spacing-xs; @@ -72,10 +53,10 @@ } &--error { background-color: var(--ffe-v-system-message-error-bg-color); - fill: var(--ffe-farge-hvit); .ffe-system-message__icon { background: var(--ffe-v-system-message-error-icon-bg-color); + color: var(--ffe-farge-hvit); } } @@ -89,29 +70,29 @@ } &--info { background-color: var(--ffe-v-system-message-info-bg-color); - fill: var(--ffe-farge-hvit); .ffe-system-message__icon { background: var(--ffe-v-system-message-info-icon-bg-color); + color: var(--ffe-farge-hvit); } } &--news&--coloredbg { background-color: var(--ffe-v-system-message-variant-bg-color); color: var(--ffe-farge-svart); - fill: var(--ffe-farge-hvit); .native & { @media (prefers-color-scheme: dark) { background-color: var(--ffe-v-system-message-news-bg-color); color: var(--ffe-farge-hvit); - fill: var(--ffe-v-system-message-news-icon-color); } } .ffe-system-message__icon { background: var(--ffe-v-system-message-news-icon-color); + color: var(--ffe-farge-hvit); .native & { @media (prefers-color-scheme: dark) { background: var(--ffe-farge-hvit); + color: var(--ffe-v-system-message-news-icon-color); } } } @@ -119,9 +100,9 @@ &--news { background-color: var(--ffe-v-system-message-news-bg-color); color: var(--ffe-farge-hvit); - fill: var(--ffe-v-system-message-news-icon-color); .ffe-system-message__icon { background: var(--ffe-farge-hvit); + color: var(--ffe-v-system-message-news-icon-color); } } @@ -135,9 +116,9 @@ } &--success { background-color: var(--ffe-v-system-message-success-bg-color); - fill: var(--ffe-farge-hvit); .ffe-system-message__icon { background: var(--ffe-v-system-message-news-icon-bg-color); + color: var(--ffe-farge-hvit); } } } @@ -159,13 +140,8 @@ height: 2rem; width: 2rem; margin-right: @ffe-spacing-sm; - - > svg { - height: 50%; - position: relative; - margin: auto; - width: 50%; - } + align-items: center; + justify-content: center; } &__content { @@ -185,35 +161,25 @@ background: transparent; border: 2px solid transparent; border-radius: 5px; - color: inherit; cursor: pointer; align-self: flex-start; width: 3rem; height: 3rem; padding-top: @ffe-spacing-xs; box-sizing: border-box; - fill: var(--ffe-v-system-message-close-button-color); + color: var(--ffe-v-system-message-close-button-color); &:hover { - fill: var(--ffe-v-system-message-close-button-color-hover); + color: var(--ffe-v-system-message-close-button-color-hover); } &:focus { border: 2px solid var(--ffe-v-system-message-close-button-border-color-focus); } - > svg { - height: 1rem; - width: 1rem; - .native & { - @media (prefers-color-scheme: dark) { - fill: inherit; - } - } - } .ffe-system-message-wrapper--news & { - fill: var(--ffe-farge-hvit); + color: var(--ffe-farge-hvit); &:hover { - fill: var(--ffe-farge-lysvarmgraa); + color: var(--ffe-farge-lysvarmgraa); } &:focus { border: 2px solid var(--ffe-farge-hvit);