diff --git a/styleguide/source/_patterns/01-atoms/01-buttons/button-sort-as-ascending.md b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort-as-ascending.md new file mode 100644 index 0000000000..0f31cd1ed7 --- /dev/null +++ b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort-as-ascending.md @@ -0,0 +1,5 @@ +### Description +This is a variant of the [Sort Button](./?p=atoms-button-sort) pattern showing an example with the arrows set to ascending sort order. + +### How to generate +* set the 'direction' variable to 'asc' diff --git a/styleguide/source/_patterns/01-atoms/01-buttons/button-sort-as-descending.md b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort-as-descending.md new file mode 100644 index 0000000000..63e3d4e728 --- /dev/null +++ b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort-as-descending.md @@ -0,0 +1,5 @@ +### Description +This is a variant of the [Sort Button](./?p=atoms-button-sort) pattern showing an example with the arrows set to descending sort order. + +### How to generate +* set the 'direction' variable to 'dsc' diff --git a/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.json b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.json index 6bda069e31..b7be201f67 100644 --- a/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.json +++ b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.json @@ -1,6 +1,6 @@ { "buttonSort": { "text": "Date", - "direction": "asc" + "direction": "" } } diff --git a/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.md b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.md index c2f1abf662..4415165491 100644 --- a/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.md +++ b/styleguide/source/_patterns/01-atoms/01-buttons/button-sort.md @@ -1,22 +1,21 @@ ---- -title: Button Sort ---- +### Description +This Pattern shows a button with directional arrows, typically used to show sort order -Description: A `