diff --git a/docs/docs/essentials/details.md b/docs/docs/essentials/details.md index db81ca684..9652c3192 100644 --- a/docs/docs/essentials/details.md +++ b/docs/docs/essentials/details.md @@ -3,8 +3,6 @@ title: Details tags: essentials --- -## Details - Individual details look like this.
@@ -12,8 +10,25 @@ Individual details look like this.

Ut lectus arcu bibendum at varius. Convallis a cras semper auctor neque vitae. Odio pellentesque diam volutpat commodo sed egestas. Amet dictum sit amet justo donec enim diam vulputate ut.

-Grouping them provides accordion-style functionality. +## Examples +### Right-to-Left languages + +The details styling automatically adapts to right-to-left languages: + +```html {.example} +
+ تبديلني + استخدام طريقة لوريم إيبسوم لأنها تعطي توزيعاَ طبيعياَ -إلى حد ما- للأحرف عوضاً عن +
+``` + +## Accordions + +In [modern browsers](https://caniuse.com/mdn-html_elements_details_name), +grouping `
` elements via the `name` attribute provides accordion-style functionality: + +```html {.example}
Enim diam

Nunc faucibus a pellentesque sit amet porttitor. Adipiscing tristique risus nec feugiat in fermentum. Leo duis ut diam quam nulla porttitor massa id. Mauris nunc congue nisi vitae.

@@ -28,3 +43,4 @@ Grouping them provides accordion-style functionality. Ut porttitor

Eu facilisis sed odio morbi quis commodo odio aenean sed. Sit amet purus gravida quis blandit turpis cursus. Eu consequat ac felis donec et odio pellentesque diam volutpat.

+``` diff --git a/docs/docs/essentials/input.md b/docs/docs/essentials/input.md index c8e072c81..24d167b29 100644 --- a/docs/docs/essentials/input.md +++ b/docs/docs/essentials/input.md @@ -2,79 +2,53 @@ title: Form Inputs tags: essentials --- + -## Forms - -
- - - +## Text fields +```html {.example} + - - - + - - - + - - - - - - - - + - - - + - - - + - - - + - - + + +``` +## Choice inputs + +```html {.example} + WA Checkbox - - - - - - - - - - - - - - -
Radio Group: - - - - - - + + +
@@ -84,34 +58,51 @@ tags: essentials Radio
+``` - - +## Color picker + +```html {.example} + + + +``` + +## Time and date Pickers + +```html {.example} + + + + + + + + +``` + +## Slider + +```html {.example} + +``` -
- - -
+## Select dropdown - - -
- +```html {.example} +
+ Option 1 Option 2 Option 3 - - -
- +``` diff --git a/docs/docs/essentials/table.md b/docs/docs/essentials/table.md index 8f8837862..a249c59dc 100644 --- a/docs/docs/essentials/table.md +++ b/docs/docs/essentials/table.md @@ -1,10 +1,9 @@ --- -title: Tables +title: Table tags: essentials --- -## Tables - +```html {.example} @@ -42,4 +41,48 @@ tags: essentials
I'm just a table
+``` +## Alternating rows + +You can use the `wa-alternating-row-colors` class to add alternating row colors to your table: + +```html {.example} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
I'm just a table
Column 1Column 2Column 3Column 4
CellCellCellCell
CellCellCellCell
CellCellCellCell
CellCellCellCell
+```