Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor token dialogs #1968

Merged
merged 3 commits into from
Jan 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add dangerLink button theme
ceolson01 committed Jan 20, 2020

Unverified

The committer email address is not verified.
commit 18e5796f2a2b20d7da53b8b97fe79da2da492223
12 changes: 12 additions & 0 deletions src/modules/core/components/Button/Button.css
Original file line number Diff line number Diff line change
@@ -119,6 +119,7 @@
* - primary: buttons with primary background color
* - secondary: buttons with transparent background and no border
* - danger: button with danger colored background
* - dangerLink: button with danger colored text, appearing as a link
* - ghost: buttons with transparent background and border color
* - underlined-bold: special button with fat underline
* - blue: button with transparent background blue semi bold text and no padding
@@ -197,6 +198,17 @@
border-top-color: transparent;
}

/*
* DangerLink
* Button with danger colored text, appearing as a link
*/
.themeDangerLink {
composes: main;
border-color: transparent;
background-color: transparent;
color: var(--danger);
}

/*
* Ghost
* buttons with transparent background and border color
1 change: 1 addition & 0 deletions src/modules/core/components/Button/Button.css.d.ts
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ export const themePrimary: string;
export const themeSecondary: string;
export const colorSchemaInverted: string;
export const themeDanger: string;
export const themeDangerLink: string;
export const themeGhost: string;
export const colorSchemaGrey: string;
export const themeUnderlinedBold: string;
1 change: 1 addition & 0 deletions src/modules/core/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ export interface Appearance {
| 'primary'
| 'secondary'
| 'danger'
| 'dangerLink'
| 'ghost'
| 'underlinedBold'
| 'blue';