* updates
* updating doc
* Fixed broken documentation in Storybook stories.
* bring back a element
* md --> mdx
* c-* doc update
Co-authored-by: Nick Taylor <nick@dev.to>
* use the dropdown initializer in post editor options
* use dropdown initializer in comment subs dropdown
* use Dropdown component in listings
* show the dropdown button when it's focused
* update storybook notes and components
* add cypress tests for post options dropdown
* add comment subscription tests
* make sure page is properly initialized before setting button functionality
* add jsdoc comments, props types, rely on optional chaining
* Update app/javascript/crayons/Dropdown/__stories__/dropdowns.md
Co-authored-by: rhymes <github@rhymes.dev>
* Update app/javascript/crayons/Dropdown/__stories__/dropdowns.md
Co-authored-by: rhymes <github@rhymes.dev>
Co-authored-by: rhymes <github@rhymes.dev>
* allow keyboard access to dropdown stories
* add accessibility notes to dropdown stories
* manage focus in html example
* Update reference to aria attributes in notes
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
* add focus style to link for keyboard users
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
* Added story sorting to Storybook.
* Added design system guidelines.
* Made Base in Storybook tree 2nd in the tree view.
* Now Components are 3rd in the treeview of Storybook.
* Now App Components are 4th in the treeview of Storybook.
* Froze node version to 12.16.0
* Revert "Froze node version to 12.16.0"
This reverts commit 093b119c7d7ca05ecb4e1c0234b24bcf8e7b10a4.
* wip <Button > component.
* wip button components.
* Fixed issue when icon does not exist.
* Removed subfolder JSX for Preact components in Storybook sidebar.
* Touched up some Storybook stories.
* Now <Button /> component supports a or button for HTML.
* Now the <Button /> component supports the disabled prop
* A nice little refactor.
* Added onClick, onMouseOver, onMouseOut, onFocus and onBlur events to the <Button /> component.
* Set the cursor to default when a <Button /> component is disabled.
* Added tests for <Button /> component.
* Added tests for <SecondaryButton />, <OutlineButton /> and <DangerButton />.
* Updated disabled cursor.
* Removed link href when button is disabled and is an <a />.
* Added the icon alone option for the <Button /> component.
* Now active and hover states are disabled for <Button /> when an HTML button is rendered.
* Now the disabled <Button /> component deactivates hover/active states properly.
* Removed global button hover styling as per @ludwiczakpawel's request.
* Renamed the as prop to tagName.
* Removed components that were wrapping different variants.
* Created barrel files so we can import directly from @crayons.
* Added stories for Dropdown for JSX.
* Tweaked Dropdown Storybook stories.
* Tweaked <Dropdown /> component.
* Added module mapping to jest for @crayons.
* Added tests for <Dropdown /> component.
* Removed Storybook custom decorator that is no longer required.
* Renamed designSystem to crayons.
* Restructured how Storybook stories are laid out in Storybook's sidebar.
* wip
* More folder restructuring for Storybook sidebar.
* Fixed Dropdown description story.
* There no longer is a Dropdown for no padding. Just add additional utility classes.
* Showing dropdowns by default in Storybook as they are hidden by default.