-
Notifications
You must be signed in to change notification settings - Fork 106
feat(alert): add pf-alert #2593
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
33afe49
feat: init commit with pf-alert
brianferry df55c1d
feat: truncated title and timeout
brianferry 6185d07
feat(alert): adding plain, custom icons
brianferry 20eaf92
Merge branch 'main' of github.com:patternfly/patternfly-elements into…
brianferry 544a0c6
feat(alert): cleaning up css, fallback variables for important styles…
brianferry c68683a
feat(core): adding isEmpty, hasSlotted w/ default slot
brianferry da3c824
chore: adding changeset
brianferry 4a1dacf
Merge branch 'feat/core-default-slot' of github.com:patternfly/patter…
brianferry 9a03851
Update core/pfe-core/controllers/slot-controller.ts
brianferry 147b672
chore: merging with feat/default-slot
brianferry e1cfe19
fix(core): adding anonymous slot back to SlotController
brianferry 88e079d
Merge branch 'feat/core-default-slot' of github.com:patternfly/patter…
brianferry 8e2cd9e
feat(alert): multiple demos, jsdocs, adding pf-icon
brianferry d97a4f7
fix(alert): private css variables, moving ICONS call inline, removing…
brianferry 472fa59
docs(alert): inline scripts, heading tags fixing
brianferry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,11 +1,45 @@ | ||
| <link rel="stylesheet" href="demo.css"> | ||
| <script type="module" src="pf-alert.js"></script> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. inline |
||
|
|
||
| <pf-alert title="Default"></pf-alert> | ||
| <pf-alert variant="info" title="Info"></pf-alert> | ||
| <pf-alert variant="success" title="Success"></pf-alert> | ||
| <pf-alert variant="warning" title="Warning"></pf-alert> | ||
| <pf-alert variant="danger" title="Danger"></pf-alert> | ||
| <pf-alert title="Default alert title"></pf-alert> | ||
|
brianferry marked this conversation as resolved.
Outdated
|
||
| <pf-alert variant="info" title="Info alert title"></pf-alert> | ||
| <pf-alert variant="success" title="Success alert title"></pf-alert> | ||
| <pf-alert variant="warning" title="Warning alert title"></pf-alert> | ||
| <pf-alert variant="danger" title="Danger alert title"></pf-alert> | ||
|
|
||
| <h1> | ||
| Alert Variations | ||
| </h1> | ||
|
|
||
| <pf-alert title="Success alert title" variant="success" dismissable> | ||
| <p>Success alert description. This should tell the user more information about the alert.</p> | ||
| <button slot="actions">View details</button> | ||
| <button slot="actions">Ignore</button> | ||
| </pf-alert> | ||
|
|
||
| <pf-alert title="Success alert title" variant="success" dismissable> | ||
| <p>Success alert description. This should tell the user more information about the alert. <a href="#">This is a link.</a></p> | ||
| <p>Success alert description. This should tell the user more information about the alert. <a href="#">This is a link.</a></p> | ||
| </pf-alert> | ||
|
|
||
| <pf-alert title="Success alert title" variant="success" dismissable> | ||
| <button slot="actions">View details</button> | ||
| <button slot="actions">Ignore</button> | ||
| </pf-alert> | ||
|
|
||
| <pf-alert title="Success alert title" variant="success" dismissable> | ||
|
|
||
| <p>Success alert description. This should tell the user more information about the alert. <a href="#">This is a link.</a></p> | ||
| <p>Success alert description. This should tell the user more information about the alert. <a href="#">This is a link.</a></p> | ||
| <button slot="actions">View details</button> | ||
| <button slot="actions">Ignore</button> | ||
| <button slot="actions">Ignore</button> | ||
| <button slot="actions">Ignore</button> | ||
| <button slot="actions">Ignore</button> | ||
| <button slot="actions">Ignore</button> | ||
| </pf-alert> | ||
|
|
||
| <pf-alert title="Success alert title" variant="success" dismissable></pf-alert> | ||
|
|
||
| <h1> | ||
| Default Icons | ||
|
|
@@ -33,7 +67,10 @@ <h1> | |
|
|
||
| <pf-alert title="Default plain" plain></pf-alert> | ||
| <pf-alert variant="info" title="Info plain" plain></pf-alert> | ||
| <pf-alert variant="success" title="Success plain" plain></pf-alert> | ||
| <pf-alert variant="success" title="Success plain" plain dismissable> | ||
| <p>Success alert description. This should tell the user more information about the alert. <a href="#">This is a link.</a></p> | ||
| <button slot="actions">Ignore</button> | ||
| </pf-alert> | ||
| <pf-alert variant="warning" title="Warning plain" plain></pf-alert> | ||
| <pf-alert variant="danger" title="Danger plain" plain></pf-alert> | ||
|
|
||
|
|
@@ -48,7 +85,17 @@ <h1> | |
| <pf-alert variant="danger" title="Danger inline" inline></pf-alert> | ||
|
|
||
| <h1> | ||
| Inline | ||
| Plain | ||
| </h1> | ||
|
|
||
| <pf-alert title="Default inline" plain></pf-alert> | ||
| <pf-alert variant="info" title="Info inline" plain></pf-alert> | ||
| <pf-alert variant="success" title="Success inline" plain></pf-alert> | ||
| <pf-alert variant="warning" title="Warning inline" plain></pf-alert> | ||
| <pf-alert variant="danger" title="Danger inline" plain></pf-alert> | ||
|
|
||
| <h1> | ||
| Inline Plain | ||
| </h1> | ||
|
|
||
| <pf-alert title="Default inline" inline plain></pf-alert> | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.