Skip to content

Instantly share code, notes, and snippets.

@derek
Created January 12, 2012 08:28
Show Gist options
  • Save derek/1599415 to your computer and use it in GitHub Desktop.
Save derek/1599415 to your computer and use it in GitHub Desktop.
YUI Open Hours - Jan 12th, 2012

YUI Open Hours for Jan 12th, 2012

Buttonpalooza!

stupid lolcat .
.
.
.
.
.
.
.


i. HTML Buttons

W3C - The button element

.
.
.
.
.
.
.
.


ii. YUI & Buttons

Why?

  • Style
  • State management - Things like selected/pressed/focused
  • Style!
  • Accessibility - Things like aria states & properties
  • Style!!

.
.
.
.
.
.
.
.


iii. YUI 3 Button Component

Investigation

Modules:

  1. Y.Button - source
  2. cssbutton - source
  3. Y.ButtonGroup (Working title)

.
.
.
.
.
.
.
.


iv. Demos

@mschipperheyn
Copy link

For me the menu-button from yui 2 is the biggest miss right now. Another "button" that I created in the library is the gallery-slidecheckbox. It's not visually a button but on the iPhone this is what a button looks like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment