Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: Collapsible Bar - collapsed by default #2360

Closed
3 tasks done
Microtus62 opened this issue Sep 4, 2024 · 1 comment · Fixed by #2367
Closed
3 tasks done

[Feature request]: Collapsible Bar - collapsed by default #2360

Microtus62 opened this issue Sep 4, 2024 · 1 comment · Fixed by #2367
Assignees
Labels
comp: angular Issues related to @sbb-esta/angular effort2: days enhancement New feature or request prio3: medium Should be done when time available

Comments

@Microtus62
Copy link

Preflight Checklist

Request type

Request for enhancement of a component

Functionality

Hello

We would like to use the collapsible sidebar in our project (SBB Police TPO TIME). Problem is, that the bar is by default in expanded state. That makes it impossible to use for navigation in our application, because with every page reload the bar appears in expanded state. And user has to close it manually.
Would it be possible to make it by default collapsed, or add an attribute [collapsedByDefault]="true" or something like that?

Thank in advance.
Martin Hrabos
Software Engineer at SBB

Link to design proposal file

No response

@mhaertwig mhaertwig self-assigned this Sep 9, 2024
@mhaertwig mhaertwig added prio3: medium Should be done when time available comp: angular Issues related to @sbb-esta/angular enhancement New feature or request effort2: days labels Sep 9, 2024
mhaertwig added a commit that referenced this issue Sep 9, 2024
This adds the `opened` input property to control the open state of the sidebar. If `opened` is set, the sidebar is not toggled automatically if the mobile state changes.

Closes #2360
sbb-design-systems-bot bot pushed a commit that referenced this issue Sep 9, 2024
…bar (#2367)

This adds the `opened` input property to control the open state of the sidebar. If `opened` is set, the sidebar is not toggled automatically if the mobile state changes.

Closes #2360
@mhaertwig
Copy link
Collaborator

@Microtus62, I've just released version 18.3.0. To close the sidebar by default, you can set opened="false" on the <sbb-sidebar> component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: angular Issues related to @sbb-esta/angular effort2: days enhancement New feature or request prio3: medium Should be done when time available
Projects
None yet
2 participants