Giter VIP home page Giter VIP logo

doggo's Issues

add component stories

  • alert
  • card
  • fallback
  • icon
  • icon_sprite
  • input
  • label
  • field_errors
  • field_description
  • modal
  • navbar
  • switch
  • table
  • drawer

Make button have loading and disabled tate.

Is your feature request related to a problem? Please describe.

For loading state, disable the button and show loading icon.

Describe the solution you'd like
Allow attributes loading and disabled on the button. https://github.com/woylie/doggo/blob/main/lib/doggo.ex#L220

Consider using slots for a custom implementation of loading icon.

Describe alternatives you've considered
Since using native HTML is preferred, disabled attribute would work fine. However, for loading state, a slot has to be populated.

Additional context
Willing to raise the PR for the same.

JS and Keyboard interaction

After completing the initial component set (#20) on the semantic level, the next step will be to add (keyboard) interaction where applicable. We'll mainly follow the APG patterns.

  • tabs
    • left arrow: move focus to previous tab
    • right arrow: move focus to next tab
    • home: move focus to first tab
    • end: move focus to last tab
  • accordion
    • toggle visibility on click
  • toggle button
    • allow client-side state handling
  • disclosure button
    • toggle visibility and aria-expanded
  • tree (see https://www.w3.org/WAI/ARIA/apg/patterns/treeview/)
    • keyboard navigation, tabindex
    • select (single, multiple; leaf only or parent and leaf)
    • expand/collapse
    • lazy load children
  • toolbar (see https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/)
    • move focus with left/right arrow key
  • carousel
    • Handle previous/next buttons
    • Handle pagination tabs
    • Auto rotation
    • Disable auto rotation when controls are used
    • Disable previous/next button on first/last item.
    • Focus management and keyboard support for pagination
  • combobox
  • menu, menubar, menubutton
  • split pane
  • action bar
  • menu
  • menu bar
  • menu group
  • menu item checkbox
  • menu item radio group

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.