Skip to content

fix(docs-infra): fix chevron visibility in aria examples in brave browser#69783

Open
kalisaNkevin wants to merge 1 commit into
angular:mainfrom
kalisaNkevin:fix/aria-tree-chevron-visibility
Open

fix(docs-infra): fix chevron visibility in aria examples in brave browser#69783
kalisaNkevin wants to merge 1 commit into
angular:mainfrom
kalisaNkevin:fix/aria-tree-chevron-visibility

Conversation

@kalisaNkevin

Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • 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 ARIA tree basic example renders an empty chevron span for leaf nodes (files), causing visual misalignment in the tree view. The expand-icon was being rendered conditionally via text content binding instead of being conditionally rendered.

Issue Number: N/A

What is the new behavior?

The chevron icon is now only rendered for tree nodes that have children (expandable items). Leaf nodes no longer have the empty expand-icon span, resulting in proper alignment across all tree items.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This is a documentation example improvement. The fix useslow to conditionally render the expand-icon span only whenthe node has children, improving the visual presentation of the ARIA tree example.

Key points about this PR:

  • ✅ It's a Documentation content change (example fix, no
  • ✅ No tests needed (examples don't require unit tests)
  • ✅ Commit message is already properly formatted
  • ✅ No breaking changes
  • ✅ Improves the clarity and correctness of the example

Ready to commit whenever you are!

@pullapprove
pullapprove Bot requested a review from alan-agius4 July 15, 2026 12:28
@google-cla

This comment was marked as outdated.

@erkamyaman

Copy link
Copy Markdown
Contributor

@erkamyaman erkamyaman left a comment

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.

And you should also squash your commits into one commit with the right commit header and body

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deployed adev-preview for 385a3da to: https://ng-dev-previews-fw--pr-angular-angular-69783-adev-prev-5zvtun0d.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

@JeanMeche

Copy link
Copy Markdown
Member
image

That doesn't look like to fix the issue.

@kalisaNkevin
kalisaNkevin force-pushed the fix/aria-tree-chevron-visibility branch from 9e057c4 to 7dd219f Compare July 15, 2026 15:03
@kalisaNkevin

Copy link
Copy Markdown
Author

Before
Screenshot 2026-07-15 at 17 57 34

After
Screenshot 2026-07-15 at 17 52 58

@kalisaNkevin
kalisaNkevin force-pushed the fix/aria-tree-chevron-visibility branch from 7dd219f to dfd322c Compare July 15, 2026 16:02
@angular-robot angular-robot Bot added the area: docs-infra Angular.dev application and infrastructure label Jul 15, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 15, 2026
@kalisaNkevin
kalisaNkevin requested a review from erkamyaman July 15, 2026 16:04
@kalisaNkevin kalisaNkevin changed the title fix(basic-example): fixed the chevron visibility fix(docs-infra): fix chevron visibility in aria tree example Jul 15, 2026
Ensure consistent alignment of tree items by always rendering the expand-icon
placeholder. Leaf nodes display the placeholder invisibly using visibility: hidden,
maintaining proper spacing that aligns with parent nodes.

This fixes the visual inconsistency where leaf nodes appeared misaligned compared
to parent nodes due to the missing chevron placeholder.
@kalisaNkevin
kalisaNkevin force-pushed the fix/aria-tree-chevron-visibility branch from dfd322c to 385a3da Compare July 15, 2026 16:10
@JeanMeche

Copy link
Copy Markdown
Member

Actually we're hitting a chromium rendering bug here. I don't reproduce the chevron issue on other browsers

@kalisaNkevin

Copy link
Copy Markdown
Author

I used brave browser to reproduce the bug rendering. But in other browser has no chevron issue @JeanMeche

@kalisaNkevin kalisaNkevin changed the title fix(docs-infra): fix chevron visibility in aria tree example fix(docs-infra): fix chevron visibility in aria examples in brave browser Jul 16, 2026
@erkamyaman

Copy link
Copy Markdown
Contributor

I used brave browser to reproduce the bug rendering. But in other browser has no chevron issue @JeanMeche

Brave Browser has its own issues, we use PrimeNG in where I work, from time to time, we get some weird css and html issues that only appear in Brave browser, then sometimes they disappear, also try to update your browser

@alan-agius4
alan-agius4 requested review from JeanMeche and removed request for alan-agius4 and erkamyaman July 20, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adev: preview area: docs-infra Angular.dev application and infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants