Skip to content
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

Core HTML Element Atom: Button #110

Closed
2 tasks done
arcticicestudio opened this issue Jan 8, 2019 · 0 comments
Closed
2 tasks done

Core HTML Element Atom: Button #110

arcticicestudio opened this issue Jan 8, 2019 · 0 comments

Comments

@arcticicestudio
Copy link
Contributor

arcticicestudio commented Jan 8, 2019

Associated epic: #63

This issue documents the implementation of the core base HTML element atom Button that represents a <button> with matching brand styles. It can also wrap the base HTML element atom A to handle internal and external links.

It will provide multiple variations:

  • primary — uses the primary color nord8 for background/border/text colorization
  • secondary — uses the secondary color nord9 for background/border/text colorization
  • simple — uses the Snow Storm and Polar Night palettes for background/border/text colorization
  • subtle — only colorizes the background on hover using the Snow Storm and Polar Night palettes for background/border/text colorization

Next to variations there will be additional props to toggle more styles:

  • dashed — uses the dashed property for the CSS border-style attribute
  • ghost — only uses a border instead of a background color
  • outlined — uses uses a border in addition to a background color
  • quiet — keeps the initial text colorization on hover

Tasks

  • Implement the CSS styles.
  • Implement the core atom component Link.
@arcticicestudio arcticicestudio added this to the 0.6.0 milestone Jan 8, 2019
@arcticicestudio arcticicestudio self-assigned this Jan 8, 2019
arcticicestudio added a commit that referenced this issue Jan 8, 2019
It provides multiple variations:

- `primary` — uses the primary color `nord8` for background/border/text
  colorization
- `secondary` — uses the secondary color `nord9` for
  background/border/text colorization
- `simple` — uses the _Snow Storm_ and _Polar Night_ palettes for
  background/border/text colorization
- `subtle` — only colorizes the background on hover using the
  "Snow Storm" and "Polar Night" palettes for background/border/text
  colorization

Next to variations there are additional props to toggle more styles:

- `dashed` — uses the `dashed` property for the CSS `border-style` (1)
  attribute
- `ghost` — only uses a border instead of a background color
- `outlined` — uses uses a border in addition to a background color
- `quiet` — keeps the initial text colorization on hover

References:
  (1) https://developer.mozilla.org/en-US/docs/Web/CSS/border-style

Associated epic: GH-63
GH-110
arcticicestudio added a commit that referenced this issue Jan 8, 2019
It consists of the previously implemented styles and variants and
represents a `<button>` (1). Next to this is can also wrap the base HTML
element atom `A` (2) to handle internal and external links.

References:
  (1) https://developer.mozilla.org/de/docs/Web/HTML/Element/button
  (2) #70

Associated epic: GH-63
GH-110
arcticicestudio added a commit that referenced this issue Jan 8, 2019
…-element-atom-button

Core HTML Element Atom: Button
@arcticicestudio arcticicestudio removed their assignment Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant