Skip to content

fix(status-bar): use static toggle button text instead of dynamic expand/collapse text#2012

Draft
akashsonune wants to merge 1 commit intomainfrom
fix/a11y-status-bar-toggle-button-text
Draft

fix(status-bar): use static toggle button text instead of dynamic expand/collapse text#2012
akashsonune wants to merge 1 commit intomainfrom
fix/a11y-status-bar-toggle-button-text

Conversation

@akashsonune
Copy link
Copy Markdown
Member

@akashsonune akashsonune commented May 5, 2026

@akashsonune akashsonune changed the title fix(status-bar): use static toggle button text instead of dynamic exp… fix(status-bar): use static toggle button text instead of dynamic expand/collapse text May 5, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new toggleButtonText input to the SiStatusBarComponent to consolidate the expand and collapse button labels, marking the previous individual inputs as deprecated. The review identifies a need to update the documentation to refer to the component as a 'status bar' rather than a 'navbar' for clarity. Additionally, the reviewer highlights that the change is breaking and requires explicit documentation in the PR footer according to the repository's contribution guidelines.

*/
readonly blinkPulse = input<Observable<boolean>>();
/**
* Text for the navbar expand/collapse toggle button. Required for a11y.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The documentation refers to a "navbar", but this component is the SiStatusBarComponent. Please update this to "status bar" to ensure accuracy and clarity.

Suggested change
* Text for the navbar expand/collapse toggle button. Required for a11y.
* Text for the status bar expand/collapse toggle button. Required for a11y.
References
  1. When naming UI elements, prioritize consistency with related components to maintain a consistent user experience across related features.

* t(() => $localize`:@@SI_STATUS_BAR.TOGGLE:Toggle`)
* ```
*/
readonly toggleButtonText = input(t(() => $localize`:@@SI_STATUS_BAR.TOGGLE:Toggle`));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The introduction of toggleButtonText and the removal of expandButtonText/collapseButtonText from the template is a breaking change. Any custom values previously provided to the deprecated inputs will now be ignored, and the button label will default to "Toggle".

According to the repository style guide (line 232), breaking changes must be documented in the PR description with a BREAKING CHANGE: footer including summary, description, and migration instructions. Additionally, consider if a fallback mechanism is needed to maintain backward compatibility for existing customizations during the deprecation period.

References
  1. Breaking changes must include BREAKING CHANGE: in the footer with summary, description, and migration instructions. (link)

@akashsonune akashsonune force-pushed the fix/a11y-status-bar-toggle-button-text branch from 7ba3c38 to 9c01475 Compare May 5, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant