Skip to content

Commit

Permalink
Fix(web): Remove unused data attribute in Accordion #DS-883
Browse files Browse the repository at this point in the history
  • Loading branch information
crishpeen authored and literat committed Aug 16, 2023
1 parent a7950e7 commit fcfb261
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
{{ styleProp(_styleProps) }}
{{ _idAttr | raw }}
{{ classProp(_classNames) }}
data-spirit-toggle="accordion"
>
{% block content %}{% endblock %}
</{{ _elementType }}>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</title>
</head>
<body>
<section id="AccordionExample" class="Accordion" data-spirit-toggle="accordion">
<section id="AccordionExample" class="Accordion">
<article id="AccordionItemExample0" class="Accordion__item">
<h3 id="AccordionItemExample0Header" class="Accordion__itemHeader">
<button type="button" class="Accordion__itemToggle" data-spirit-toggle="collapse" data-spirit-target="AccordionItemExample0Content" aria-expanded="false" aria-controls="AccordionItemExample0Content">Accordion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</title>
</head>
<body>
<section class="Accordion" data-spirit-toggle="accordion">
<section class="Accordion">
<article id="AccordionItemExample0" class="Accordion__item">
<h3 id="AccordionItemExample0Header" class="Accordion__itemHeader">
<button type="button" class="Accordion__itemToggle" data-spirit-toggle="collapse" data-spirit-target="AccordionItemExample0Content" aria-expanded="false" aria-controls="AccordionItemExample0Content">Accordion
Expand Down
1 change: 0 additions & 1 deletion packages/web/src/js/__tests__/Collapse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ describe('Collapse', () => {
<section
id="accordionExample1"
class="Accordion"
data-spirit-toggle="accordion"
>
<article
id="accordionExample1_article_0"
Expand Down
6 changes: 3 additions & 3 deletions packages/web/src/scss/components/Accordion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Building blocks:
Common wrapper for all items:

```html
<section class="Accordion" data-spirit-toggle="accordion">
<section class="Accordion">
<!-- One or more items inside -->
</section>
```
Expand Down Expand Up @@ -117,7 +117,7 @@ When you put it all together:

```html
<!-- Accordion: start -->
<section class="Accordion" data-spirit-toggle="accordion">
<section class="Accordion">
<!-- Accordion item: start -->
<article id="example_1_item_1" class="Accordion__item">
<!-- Accordion item header: start -->
Expand Down Expand Up @@ -180,7 +180,7 @@ Link individual **Collapse items** to their **Accordion parent** via
First add an `id` to your Accordion wrapper:

```html
<section id="accordion" class="Accordion" data-spirit-toggle="accordion">
<section id="accordion" class="Accordion">
<!-- Accordion items inside -->
</section>
```
Expand Down
3 changes: 1 addition & 2 deletions packages/web/src/scss/components/Accordion/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2 class="docs-Heading">Basic usage</h2>
<div class="mb-400">

<!-- Accordion: start -->
<section class="Accordion" data-spirit-toggle="accordion">
<section class="Accordion">

<!-- Accordion item: start -->
<article id="example_1_item_1" class="Accordion__item">
Expand Down Expand Up @@ -228,7 +228,6 @@ <h2 class="docs-Heading">One item open at a time</h2>
<section
id="example_2"
class="Accordion"
data-spirit-toggle="accordion"
>

<!-- Accordion item: start -->
Expand Down

0 comments on commit fcfb261

Please sign in to comment.