In React's terminology, there are five core types that are important to distinguish:
React Elements
In React's terminology, there are five core types that are important to distinguish:
React Elements
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } |
This is a small guide to marking up fully accessible tabs. Consider using PostHTML ARIA Tabs as a practical solution.
tablist role to the <ul> to indicate it contains tabs.presentation role to each <li> to bypass its list item state.tab role to each <a> to incidate it is an actual tab.href and aria-controls to each <a> to reference its tab panel.| import produce from 'immer'; | |
| import {createStore} from 'redux'; | |
| const handleActions = (actionsMap, defaultState) => ( | |
| state = defaultState, | |
| {type, payload} | |
| ) => | |
| produce(state, draft => { | |
| const action = actionsMap[type]; | |
| action && action(draft, payload); |
| <form action="https://launchpad.37signals.com/authenticate" method="post"> | |
| <input name="product" value="YOUR-PRODUCT" type="hidden" /> | |
| <input name="subdomain" value="YOUR-SUBDOMAIN" type="hidden" /> | |
| <p>Username<br /> | |
| <input name="username" id="username" type="text" /></p> | |
| <p>Password<br /> | |
| <input name="password" id="password" type="password" /></p> |
| /* | |
| Form Elements | |
| -- Styled to look like native Safari on OS X. | |
| -- Drop-down <select> menus are unaffected. | |
| -- Buttons are unaffected. Native OS style. | |
| */ | |
| ::-webkit-input-placeholder { | |
| color: #000; | |
| } |
| error_reporting(E_ALL & ~E_STRICT ^ E_DEPRECATED); |