Skip to content

Commit 46ca5bb

Browse files
author
Shayan Roshan
committed
add uswds js
1 parent b7071a2 commit 46ca5bb

3 files changed

Lines changed: 21 additions & 22 deletions

File tree

.storybook/preview.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ export const parameters = {
1515
},
1616
},
1717
};
18-
// import "!style-loader!css-loader!sass-loader!../scss/sam-styles/index.scss";
18+
import '../node_modules/@uswds/uswds/dist/js/uswds.min.js';
1919
import "../sam-styles/index.scss";
20-

sam-styles/packages/components/accordion/accordion.stories.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export default {
1717
Accordion Button
1818
</button>
1919
</h2>
20-
<!--div id="b-a1" class="usa-accordion__content">
20+
<div id="b-a1" class="usa-accordion__content" hidden>
2121
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
22-
</div-->
22+
</div>
2323
2424
<h2 class="usa-accordion__heading">
2525
<button class="usa-accordion__button " aria-expanded="true" aria-controls="b-a2">
@@ -35,27 +35,27 @@ export default {
3535
Accordion Button
3636
</button>
3737
</h2>
38-
<!--div id="b-a3" class="usa-accordion__content">
38+
<div id="b-a3" class="usa-accordion__content" hidden>
3939
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
40-
</div-->
40+
</div>
4141
4242
<h2 class="usa-accordion__heading">
4343
<button class="usa-accordion__button " aria-expanded="false" aria-controls="b-a4">
4444
Accordion Button
4545
</button>
4646
</h2>
47-
<!--div id="b-a4" class="usa-accordion__content">
47+
<div id="b-a4" class="usa-accordion__content" hidden>
4848
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
49-
</div-->
49+
</div>
5050
5151
<h2 class="usa-accordion__heading">
5252
<button class="usa-accordion__button " aria-expanded="false" aria-controls="b-a5">
5353
Accordion Button
5454
</button>
5555
</h2>
56-
<!--div id="b-a5" class="usa-accordion__content">
56+
<div id="b-a5" class="usa-accordion__content" hidden>
5757
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
58-
</div-->
58+
</div>
5959
6060
</div>`;
6161
};

sam-styles/packages/components/accordion/templates/multiselectable.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
<div class="usa-accordion usa-accordion--bordered" aria-multiselectable="true">
1+
<div class="usa-accordion usa-accordion--bordered" aria-multiselectable="true" data-allow-multiple>
22

33
<h2 class="usa-accordion__heading">
4-
<button class="usa-accordion__button border-top-1px border-base-light " aria-expanded="false" aria-controls="b-a1">
4+
<button class="usa-accordion__button border-top-1px border-base-light " aria-expanded="true" aria-controls="m-a1">
55
Accordion Button
66
</button>
77
</h2>
8-
<!--div id="b-a1" class="usa-accordion__content">
8+
<div id="m-a1" class="usa-accordion__content" >
99
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
10-
</div-->
10+
</div>
1111

1212
<h2 class="usa-accordion__heading">
13-
<button class="usa-accordion__button " aria-expanded="true" aria-controls="b-a2">
13+
<button class="usa-accordion__button " aria-expanded="false" aria-controls="m-a2">
1414
Accordion Button
1515
</button>
1616
</h2>
17-
<div id="b-a2" class="usa-accordion__content">
17+
<div id="m-a2" class="usa-accordion__content" hidden>
1818
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
1919
</div>
2020

2121
<h2 class="usa-accordion__heading">
22-
<button class="usa-accordion__button " aria-expanded="true" aria-controls="b-a3">
22+
<button class="usa-accordion__button " aria-expanded="false" aria-controls="m-a3">
2323
Accordion Button
2424
</button>
2525
</h2>
26-
<div id="b-a3" class="usa-accordion__content">
26+
<div id="m-a3" class="usa-accordion__content" hidden>
2727
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
2828
</div>
2929

3030
<h2 class="usa-accordion__heading">
31-
<button class="usa-accordion__button " aria-expanded="true" aria-controls="b-a4">
31+
<button class="usa-accordion__button " aria-expanded="true" aria-controls="m-a4">
3232
Accordion Button
3333
</button>
3434
</h2>
35-
<div id="b-a4" class="usa-accordion__content">
35+
<div id="m-a4" class="usa-accordion__content">
3636
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
3737
</div>
3838

3939
<h2 class="usa-accordion__heading">
40-
<button class="usa-accordion__button " aria-expanded="true" aria-controls="b-a5">
40+
<button class="usa-accordion__button " aria-expanded="false" aria-controls="m-a5">
4141
Accordion Button
4242
</button>
4343
</h2>
44-
<div id="b-a5" class="usa-accordion__content">
44+
<div id="m-a5" class="usa-accordion__content" hidden>
4545
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
4646
</div>
4747

0 commit comments

Comments
 (0)