Skip to content

Popover styling fixes #2637

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

Merged
merged 2 commits into from
Jun 2, 2025
Merged

Popover styling fixes #2637

merged 2 commits into from
Jun 2, 2025

Conversation

emma-sg
Copy link
Member

@emma-sg emma-sg commented May 29, 2025

Changes

  • Uses .tooltip__body selector instead of ::part(body) for tooltip body from within element — ::part(body) would work if targeting from outside the element, but not from inside, since we're inheriting sl-tooltip's render method
  • Uses data-current-placement instead of placement attribute to determine which sides of the arrow should have borders, so that when a popover is flipped to another side the correct borders show up on the arrow

cc @SuaYoo

Testing

Tested locally on latest Chrome, Safari, and Firefox

emma-sg added 2 commits May 29, 2025 17:59
this ensures the arrow border correctly switches when a tooltip flips to
another side
@SuaYoo
Copy link
Member

SuaYoo commented Jun 2, 2025

Interesting, I understand how the render method is inherited, but I didn't catch this issue in Chrome because the Firefox implementation for ::part() acts more like ::slotted and doesn't need to specify an originating selector. Nice catch!

@emma-sg emma-sg merged commit 4ed1a37 into main Jun 2, 2025
27 checks passed
@emma-sg emma-sg deleted the frontend-ui-fix-popover-styling branch June 2, 2025 17:51
emma-sg added a commit that referenced this pull request Jun 4, 2025
Fixes #2636

## Changes
- Displays trials scheduled for cancellation alongside non-trials
scheduled for cancellation
- Adds filter for "bad states" — active orgs that have a cancelled
subscription, orgs with a cancellation date in the past, and empty
subscription ids currently, but could be extended as necessary
- Displays scheduled-for-cancellation trials in the "trialing" filter as
well
- Improves display of future cancellation durations for both active
subscriptions and trials
- Surfaces issues where a trial cancellation was scheduled for the past
but the org is still active
- Swaps out `sl-tooltip`s for `btrix-popover`s in popovers with longer
details
- Adds correct heading levels, `tabindex`, and orientation for popovers
in use here

## Follow-ups
Once #2637 is merged we can ~~swap out the `sl-tooltip`s for
`btrix-popover`s here~~ _done!_ & in the superadmin stats card
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.

2 participants