open-consul/ui/packages/consul-ui/app/components/flash-message
John Cowen 6d8dc8a09b
ui: Rename icons for consistency and remove unused icons (#10311)
* ui: Standardize logo naming

According to structure it should always be logo-name not name-logo

* Make sure all our logos use logo-name format

* Upgrade to @hashicorp/structure-icons 1.9.0

* Add `-color` to be consistent with other logos

* Add ms logo back in

* Remove all the old `*-color` icons from before when we got masks

* Add missing files

* Missed glimmer extend name change
2021-06-22 18:56:17 +01:00
..
README.mdx ui: Rename icons for consistency and remove unused icons (#10311) 2021-06-22 18:56:17 +01:00
index.scss ui: Rename icons for consistency and remove unused icons (#10311) 2021-06-22 18:56:17 +01:00
layout.scss ui: Rename icons for consistency and remove unused icons (#10311) 2021-06-22 18:56:17 +01:00
skin.scss ui: Rename icons for consistency and remove unused icons (#10311) 2021-06-22 18:56:17 +01:00

README.mdx

---
class: css
state: needs-love
---
# flash-message

CSS component for styling our flash messages

```hbs preview-template
<div class="flash-message">
  <p
    role="alert"
    class={{or this.type 'success'}}
  >
    <strong>
      {{capitalize (or this.type 'success')}}!
    </strong>
  </p>
</div>

<figure>
  <figcaption>Provide a widget to change the <code>class</code></figcaption>

  <select
    onchange={{action (mut this.type) value="target.value"}}
  >
    <option>success</option>
    <option>warning</option>
    <option>error</option>
    <option>exists</option>
  </select>

</figure>
```