mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Dark Mode: Info Box (#14161)
This commit is contained in:
parent
39e63432bf
commit
db738d0f73
@ -1,17 +1,17 @@
|
|||||||
.info-box {
|
.info-box {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: var(--alabaster);
|
background-color: var(--color-background-alternative);
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
color: var(--mid-gray);
|
color: var(--color-text-alternative);
|
||||||
|
|
||||||
&__close::after {
|
&__close::after {
|
||||||
content: '\00D7';
|
content: '\00D7';
|
||||||
font-size: 29px;
|
font-size: 29px;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
color: var(--dusty-gray);
|
color: var(--color-icon-default);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 12px;
|
right: 12px;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
22
ui/components/app/info-box/info-box.stories.js
Normal file
22
ui/components/app/info-box/info-box.stories.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
import InfoBox from '.';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'Components/App/InfoBox',
|
||||||
|
id: __filename,
|
||||||
|
component: InfoBox,
|
||||||
|
argTypes: {
|
||||||
|
title: 'string',
|
||||||
|
description: 'string',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const DefaultStory = (args) => <InfoBox {...args} />;
|
||||||
|
|
||||||
|
DefaultStory.storyName = 'Default';
|
||||||
|
|
||||||
|
DefaultStory.args = {
|
||||||
|
title: 'Hello Ether',
|
||||||
|
description: 'This is the description',
|
||||||
|
};
|
@ -46,5 +46,4 @@
|
|||||||
--malibu-blue: #b8cbd8;
|
--malibu-blue: #b8cbd8;
|
||||||
--athens-grey: #e9edf0;
|
--athens-grey: #e9edf0;
|
||||||
--geyser: #d2d8dd;
|
--geyser: #d2d8dd;
|
||||||
--mid-gray: #5b5d67;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user