From 7c748bff039adc1056779e277f2360bc7ae33eae Mon Sep 17 00:00:00 2001 From: jonathannewman Date: Thu, 6 Aug 2020 08:55:36 -0700 Subject: [PATCH] fix: remove role presentation from li, update readme The specification of the presentation role on the `li` tags creates a linting error within the new template linting in ember. The role seems to have no functional impact on screenreaders, so it is removed. The example in the readme was updated to agree with the examples in the dummy application. --- README.md | 22 ++++++++++------------ tests/dummy/app/templates/dynamic-tabs.hbs | 2 +- tests/dummy/app/templates/index.hbs | 6 +++--- tests/dummy/app/templates/query-params.hbs | 6 +++--- 4 files changed, 17 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 0e2aeb6d..90e5b12c 100644 --- a/README.md +++ b/README.md @@ -26,18 +26,16 @@ $ ember install ivy-tabs ```handlebars {{#ivy-tabs selection=selection as |tabs|}} - {{#tabs.tablist as |tablist|}} - + {{#tabs.tablist tagName="ul" as |tablist|}} +
  • + {{#tablist.tab "TabA" on-select=(action (mut selection))}}Foo{{/tablist.tab}} +
  • +
  • + {{#tablist.tab "TabB" on-select=(action (mut selection))}}Bar{{/tablist.tab}} +
  • +
  • + {{#tablist.tab "TabC" on-select=(action (mut selection))}}Baz{{/tablist.tab}} +
  • {{/tabs.tablist}} {{#tabs.tabpanel "TabA"}} diff --git a/tests/dummy/app/templates/dynamic-tabs.hbs b/tests/dummy/app/templates/dynamic-tabs.hbs index 527f3849..ebb5d521 100644 --- a/tests/dummy/app/templates/dynamic-tabs.hbs +++ b/tests/dummy/app/templates/dynamic-tabs.hbs @@ -6,7 +6,7 @@ {{#ivy-tabs selection=selection as |tabs|}} {{#tabs.tablist aria-label="Example Tabs" class="nav nav-tabs" id="dynamic-tablist" tagName="ul" as |tablist|}} {{#each model as |item|}} -