Skip to content

refactor(docs-infra): extract magic 27 in navigation-list tooltip thr…#68960

Open
erkamyaman wants to merge 1 commit into
angular:mainfrom
erkamyaman:refactor-navigation-list-tooltip-threshold-constant
Open

refactor(docs-infra): extract magic 27 in navigation-list tooltip thr…#68960
erkamyaman wants to merge 1 commit into
angular:mainfrom
erkamyaman:refactor-navigation-list-tooltip-threshold-constant

Conversation

@erkamyaman
Copy link
Copy Markdown
Contributor

The matTooltip on navigation list items was disabled when the label was shorter than the literal 27, repeated across four bindings in the template. Lift the value to a protected readonly field so the threshold has a name and lives in one place.

PR Checklist

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The matTooltipDisabled binding on each navigation list item compares the label length against a literal 27, repeated four times across the template.

What is the new behavior?

The threshold is extracted to a protected readonly labelTruncationThreshold = 27 field on NavigationList and the four template bindings reference it by name. No functional change.

Does this PR introduce a breaking change?

  • Yes
  • No

…eshold

The matTooltip on navigation list items was disabled when the label was
shorter than the literal `27`, repeated across four bindings in the
template. Lift the value to a protected readonly field so the threshold
has a name and lives in one place.
@pullapprove pullapprove Bot requested a review from JeanMeche May 27, 2026 21:09
@angular-robot angular-robot Bot added the area: docs-infra Angular.dev application and infrastructure label May 27, 2026
@ngbot ngbot Bot added this to the Backlog milestone May 27, 2026
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: docs-infra Angular.dev application and infrastructure target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants