Parser icon indicating copy to clipboard operation
Parser copied to clipboard

Control what gets the state value

Open custa1200 opened this issue 9 years ago • 1 comments

I would like to get a bit more control over which elements in the markup recieve the state values. This would help when building up elements of more than just a single element. and ensure the state value is applied exactly where I want. It would also help that each item of the states could have unique ID's in the page.

eg could be, not sure how the parsing would work though.

/**
  * @name Input Number (Keyboard)
  *
  * @description An input that shows a pure numeric keyboard on mobile devices.
  *
  * @state :hover - Hover
  * @state :focus - Focus
  * @state :disabled - Disabled
  *
  * @markup
  * <label for="input-password-@state" class="label">Input Number</label>
  * <input id="input-password-@state" class="input input--number @state" type="text" pattern="\d*" />
  */

custa1200 avatar Apr 01 '16 04:04 custa1200

+1

jameelmoses avatar Jul 29 '16 13:07 jameelmoses