-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(outline-core-alert): Basic updates and cleanup.
- Loading branch information
Showing
7 changed files
with
127 additions
and
24 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
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,13 @@ | ||
--- | ||
'@phase2/outline-form': patch | ||
'@phase2/outline-storybook': patch | ||
'@phase2/outline-examples': patch | ||
'@phase2/outline-core-alert': patch | ||
'@phase2/outline-core-link': patch | ||
'@phase2/outline-docs': patch | ||
'@phase2/outline-config': patch | ||
'@phase2/outline-templates': patch | ||
'@phase2/outline-core': patch | ||
--- | ||
|
||
Cleaup and organization. |
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,30 @@ | ||
# outline-core-alert | ||
|
||
The Outline Core Alert component | ||
|
||
## Properties | ||
|
||
| Property | Attribute | Type | Default | Description | | ||
|----------------------|------------------|-----------------------------------------------|---------|-----------------------------------------------| | ||
| `adoptedStylesheets` | | `AdoptedStyleSheets` | | | | ||
| `debug` | | `boolean` | false | | | ||
| `isInteractive` | `is-interactive` | `boolean` | false | This is important context for screen readers. | | ||
| `status` | `status` | `"info" \| "warning" \| "error" \| "success"` | "info" | | | ||
|
||
## Slots | ||
|
||
| Name | Description | | ||
|--------------|------------------------------------------------| | ||
| `default` | The alert contents. | | ||
| `header` | The header in the alert. | | ||
| `icon-end` | The icon to display at the end of the alert. | | ||
| `icon-start` | The icon to display at the start of the alert. | | ||
|
||
## CSS Custom Properties | ||
|
||
| Property | Description | | ||
|----------------------------|--------------------------------------------------| | ||
| `--outline-alert--error` | background: The background color for the error alert. | | ||
| `--outline-alert--info` | background: The background color for the info alert. | | ||
| `--outline-alert--success` | background: The background color for the success alert. | | ||
| `--outline-alert--warning` | background: The background color for the warning alert. | |
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
4 changes: 4 additions & 0 deletions
4
packages/components/outline-core-alert/src/style/outline-core-alert.css
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,3 +1,7 @@ | ||
:host { | ||
@nested-import './outline-core-alert.vars.css'; | ||
} | ||
|
||
.alert-body { | ||
display: block; | ||
border-width: 0; | ||
|
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,3 @@ | ||
outline-core-alert { | ||
@nested-import './outline-core-alert.vars.css'; | ||
} |