0.1.0 • Published 9 years ago
suitcss-components-arrow v0.1.0
SUIT Arrow
A SUIT component for an arrow to use with dropdowns, tooltips etc.
Read more about SUIT's design principles.
Installation
Available classes
Arrow- The core Arrow classArrow--[top|right|bottom|left]– Position modifiers.Arrow--bottomis the default.
Configurable variables
--Arrow-size
--Arrow-backgroundColor
--Arrow-borderColor
--Arrow-borderRadius
--Arrow-boxShadowColor
--Arrow-boxShadowSpreadUsage
<span class="Arrow"></span>It is recommended to use a wrapper element to control the Arrow position.
E.g.:
<span class="Dropdown-arrow" aria-hidden="true">
<span class="Arrow"></span>
</span>Tweaking the Arrow Size
The arrow size can be changed by overriding the font-size of the .Arrow element.
Testing
Install Node (comes with npm).
npm installTo generate a build:
npm run buildTo generate the testing build.
npm run build-testBasic visual tests are in test/index.html.
To pre-process:
npm run preprocessTo pre-process the tests:
npm run preprocess-testBrowser support
- Google Chrome 4+
- Opera 11.5+
- Firefox 3.5+
- Safari 3.1+
- Internet Explorer 9+
0.1.0
9 years ago