consul/ui/packages/consul-ui/app/components/notice
John Cowen 17438020f1
ui: Accessibility scan improvements (#9485)
* ui: Remove all vestiges of role=tabpanel

* Switch out tablist role for a label, default to Secondary

* Move healthcheckout-output headers to h2, ideally these would be outside the component

* Add aria-label for empty button

* Fix up non-unique ids in topology component

* Temporarily fixup h2 in KV > LockSession

* Fixup dl with no dt

* h3 > h2

* Fix up page objects that were reliant on ids
2021-01-05 10:05:59 +00:00
..
README.stories.mdx ui: Move notice storybook to use controls addon (#9126) 2020-11-09 09:14:51 +00:00
index.hbs ui: Upgrade the rest of the UI to use the new Notice component (#9035) 2020-10-26 16:51:53 +00:00
index.scss ui: Upgrade the rest of the UI to use the new Notice component (#9035) 2020-10-26 16:51:53 +00:00
layout.scss ui: Upgrade the rest of the UI to use the new Notice component (#9035) 2020-10-26 16:51:53 +00:00
skin.scss ui: Accessibility scan improvements (#9485) 2021-01-05 10:05:59 +00:00

README.stories.mdx

import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { hbs } from 'ember-cli-htmlbars';

<Meta title="Components/Notice" component="Notice" />

# Notice

<Canvas>
  <Story name="Basic"
    argTypes={{
      type: {
        defaultValue: 'success',
        control: {
          type: 'select',
          options: [
            'success',
            'warning',
            'info',
            'highlight',
          ]
        }
      }
    }}
  >{(args) => ({
    template: hbs`<Notice
        @type={{type}}
      as |notice|>
        <notice.Header>
          <h3>Header</h3>
        </notice.Header>
        <notice.Body>
          <p>
            Body
          </p>
        </notice.Body>
        <notice.Footer>
          <p>
            Footer
          </p>
        </notice.Footer>
      </Notice>`,
    context: args
  })}
  </Story>
</Canvas>