Skip to content

Commit

Permalink
refactor: set opened to false by default on accordion heading (#8264)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Dec 3, 2024
1 parent 420d0d0 commit f621583
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/accordion/src/vaadin-accordion-heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class AccordionHeading extends ActiveMixin(DirMixin(ThemableMixin(PolymerElement
opened: {
type: Boolean,
reflectToAttribute: true,
value: false,
},
};
}
Expand Down
1 change: 1 addition & 0 deletions packages/accordion/src/vaadin-lit-accordion-heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class AccordionHeading extends ActiveMixin(DirMixin(ThemableMixin(PolylitMixin(L
opened: {
type: Boolean,
reflectToAttribute: true,
value: false,
},
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ snapshots["vaadin-accordion-heading host disabled"] =

snapshots["vaadin-accordion-heading shadow default"] =
`<button
aria-expanded="false"
id="button"
part="content"
>
Expand All @@ -47,6 +48,7 @@ snapshots["vaadin-accordion-heading shadow default"] =

snapshots["vaadin-accordion-heading shadow disabled"] =
`<button
aria-expanded="false"
disabled=""
id="button"
part="content"
Expand Down

0 comments on commit f621583

Please sign in to comment.