diff --git a/toolkits/nature/packages/nature-sort-by/demo/dist/index.html b/toolkits/nature/packages/nature-sort-by/demo/dist/index.html index 35a1ec91e..49b10c565 100644 --- a/toolkits/nature/packages/nature-sort-by/demo/dist/index.html +++ b/toolkits/nature/packages/nature-sort-by/demo/dist/index.html @@ -1293,6 +1293,7 @@ } .c-sort-by__heading { + float: left; margin-bottom: 0; } @@ -1899,7 +1900,7 @@
-
Sort by:
+ Sort by:
@@ -1957,7 +1958,7 @@ function addInputListeners(inputs, submitButton) { inputs.forEach(function (input) { - input.addEventListener('change', function (event) { + input.addEventListener('change', function () { submitButton.click(); }); }); diff --git a/toolkits/nature/packages/nature-sort-by/scss/50-components/sort-by.scss b/toolkits/nature/packages/nature-sort-by/scss/50-components/sort-by.scss index 5b780884b..f38026f2b 100644 --- a/toolkits/nature/packages/nature-sort-by/scss/50-components/sort-by.scss +++ b/toolkits/nature/packages/nature-sort-by/scss/50-components/sort-by.scss @@ -36,6 +36,7 @@ } .c-sort-by__heading { + float: left; // needed because browsers have special rendering rules for legend elements: https://stackoverflow.com/questions/5818960/why-wont-my-legend-element-display-inline margin-bottom: 0; } diff --git a/toolkits/nature/packages/nature-sort-by/view/sort-by.hbs b/toolkits/nature/packages/nature-sort-by/view/sort-by.hbs index 5b3832efc..f58cc157e 100644 --- a/toolkits/nature/packages/nature-sort-by/view/sort-by.hbs +++ b/toolkits/nature/packages/nature-sort-by/view/sort-by.hbs @@ -1,5 +1,5 @@
-
Sort by:
+ Sort by: {{#each sortOrderFilter as |listElement|}}