Skip to content

Commit

Permalink
feat(ld-notice): remove bg color of error mode
Browse files Browse the repository at this point in the history
  • Loading branch information
renet authored and borisdiakur committed Jan 28, 2022
1 parent b10ca2a commit fbed5d6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 16 deletions.
8 changes: 4 additions & 4 deletions screenshot/builds/master.json
Original file line number Diff line number Diff line change
Expand Up @@ -6064,7 +6064,7 @@
},
{
"id": "ad43b06f",
"image": "b728c4848c1c23bbd81f8c6190c101f3.png",
"image": "8b91e83528f3d3980c313baa9a0a6ad5.png",
"userAgent": "default",
"desc": "ld-notice css component with headline error",
"testPath": "./src/liquid/components/ld-notice/test/ld-notice.e2e.ts",
Expand Down Expand Up @@ -6103,7 +6103,7 @@
},
{
"id": "eba9d27f",
"image": "763136d88f532b45b203aaea6c0cdd76.png",
"image": "81d94be4776f4c6c42998787b881a53e.png",
"userAgent": "default",
"desc": "ld-notice css component without headline error",
"testPath": "./src/liquid/components/ld-notice/test/ld-notice.e2e.ts",
Expand Down Expand Up @@ -6142,7 +6142,7 @@
},
{
"id": "d21736c2",
"image": "b728c4848c1c23bbd81f8c6190c101f3.png",
"image": "8b91e83528f3d3980c313baa9a0a6ad5.png",
"userAgent": "default",
"desc": "ld-notice web component with headline error",
"testPath": "./src/liquid/components/ld-notice/test/ld-notice.e2e.ts",
Expand Down Expand Up @@ -6181,7 +6181,7 @@
},
{
"id": "449daf7a",
"image": "763136d88f532b45b203aaea6c0cdd76.png",
"image": "81d94be4776f4c6c42998787b881a53e.png",
"userAgent": "default",
"desc": "ld-notice web component without headline error",
"testPath": "./src/liquid/components/ld-notice/test/ld-notice.e2e.ts",
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
19 changes: 7 additions & 12 deletions src/liquid/components/ld-notice/ld-notice.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:host,
.ld-notice {
--ld-notice-error-text-col: var(--ld-thm-error);
--ld-notice-info-text-col: var(--ld-thm-primary);
--ld-notice-warning-text-col: var(--ld-thm-warning);
--ld-notice-error-icon-col: var(--ld-thm-error);
--ld-notice-info-icon-col: var(--ld-thm-primary);
--ld-notice-warning-icon-col: var(--ld-thm-warning);

align-items: baseline;
border-radius: var(--ld-br-l);
Expand All @@ -18,11 +18,9 @@

:host(.ld-notice--error),
.ld-notice--error {
background: var(--ld-thm-error-highlight);

.ld-notice__icon,
.ld-notice__headline {
color: var(--ld-notice-error-text-col);
color: var(--ld-notice-error-icon-col);
}

.ld-notice__icon {
Expand All @@ -32,12 +30,9 @@

:host(.ld-notice--info),
.ld-notice--info {
.ld-notice__icon {
color: var(--ld-notice-info-text-col);
}

.ld-notice__icon,
.ld-notice__headline {
color: var(--ld-notice-info-text-col);
color: var(--ld-notice-info-icon-col);
}
}

Expand All @@ -46,8 +41,8 @@
background: var(--ld-thm-warning-highlight);

.ld-notice__icon {
color: var(--ld-notice-warning-text-col);
--ld-icon-secondary-col: var(--ld-col-neutral-900);
color: var(--ld-notice-warning-icon-col);
}

.ld-notice__headline {
Expand Down

0 comments on commit fbed5d6

Please sign in to comment.