-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from gsoft-inc/feature/98
Feature/98 - Alert fixes
- Loading branch information
Showing
9 changed files
with
72 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@orbit-ui/transition-components": major | ||
--- | ||
|
||
- Alert is now dismissable by default. This is potentially a breaking change if you we're not expecting the alert to be closable. To fix this, either add `dismissable={false}` to the Alert, or handle the `onClose` event handler. | ||
|
||
- Dialog small size has been slightly reduced by 84px. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
.o-ui-alert-warning-icon { | ||
color: var(--hop-warning-icon-weak); | ||
.o-ui-alert-button-group > .o-ui-button { | ||
max-width: 50%; | ||
width: 50%; | ||
flex-grow: 1; | ||
flex-basis: 0; | ||
} | ||
|
||
.o-ui-alert-negative-icon { | ||
color: var(--hop-danger-icon-weak); | ||
.o-ui-alert-heading { | ||
text-align: left; | ||
width: 100%; | ||
} | ||
|
||
.o-ui-alert-content { | ||
text-align: left; | ||
} | ||
|
||
/* We need to determine a sensitive max-width to wrap - 360px seems like a good point */ | ||
@media all and (max-width: 40rem) { | ||
.o-ui-alert-button-group > .o-ui-button { | ||
max-width: 100%; | ||
width: 100%; | ||
} | ||
.o-ui-alert-heading { | ||
text-align: center; | ||
} | ||
.o-ui-alert-content { | ||
text-align: center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ | |
|
||
/* DIALOG | SIZES */ | ||
.o-ui-dialog-sm { | ||
width: 34rem; | ||
width: 28.75rem; | ||
} | ||
|
||
.o-ui-dialog-md { | ||
|