Skip to content

GAUD-10312 - No arrows when divider collapsed - #7341

Merged
svanherk merged 2 commits into
mainfrom
GAUD-10312-no-arrows-when-collapsed
Aug 10, 2026
Merged

GAUD-10312 - No arrows when divider collapsed#7341
svanherk merged 2 commits into
mainfrom
GAUD-10312-no-arrows-when-collapsed

Conversation

@svanherk

@svanherk svanherk commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Alternative to #7334, where we don't render an arrow at all when the divider is collapsed, because the divider handle indicates opening direction already.

vdiff report here.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7341/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@dlockhart dlockhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Much prefer this behaviour!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These tests no longer provide value, as there's nothing to hover.

if (this.#clickedArrow) return; // Arrows don't support dragging

const clickedArrow = path.find(el => el.classList?.contains('divider-arrow'));
if (clickedArrow) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copied from other PR for posterity:

This code moving into the click handler above fixes an eventual bug that would have come up with overlay. It's the same issue the drawer would have had - if we move the divider before the click happens, it'll click what's behind it. I thought this was only an issue with the drawer handle, but it also happens to the arrows in overlay mode, where clicking the overlay closes the drawer.

Even if we don't want that to happen (I need to ask design), it's just better and will likely save us from some other bug in the future.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@svanherk
svanherk marked this pull request as ready for review August 10, 2026 16:21
@svanherk
svanherk requested a review from a team as a code owner August 10, 2026 16:21
@svanherk
svanherk merged commit 666765a into main Aug 10, 2026
11 checks passed
@svanherk
svanherk deleted the GAUD-10312-no-arrows-when-collapsed branch August 10, 2026 17:31
@d2l-github-release-tokens

Copy link
Copy Markdown

🎉 This PR is included in version 3.287.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants