Skip to content
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

UX: Move user-cards above composer #27491

Merged
merged 3 commits into from
Jun 18, 2024
Merged

UX: Move user-cards above composer #27491

merged 3 commits into from
Jun 18, 2024

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Jun 15, 2024

There is currently only one scenario when both the composer and a user card would be present at the same time:

if you have the composer open and then you click on something outside it that triggers a card. Which implies intent to see the card (unobstructed by the composer πŸ˜‰)

The reverse doesn't happen because opening the composer would close an existing user card.

In theory there's also displaying a user card by clicking on a mention in composer's preview but that functionality is currently broken (and this PR is a prerequisite πŸ˜‰)


I changed .user-card, .group-card to .fk-d-menu[data-identifier="card"] because that regressed when we moved user cards to float-kit – they are nested inside .fk-d-menu so its z-index is now important (effectively the cards had z-index: z("dropdown") instead of z("usercard"))

There is currently only one scenario when both the composer and a user card would be present at the same time:

if you have the composer open and then you click on something outside it that triggers a card. Which implies intent to see the card (unobstructed by the composer πŸ˜‰)

The reverse doesn't happen because opening the composer would close an existing user card.

In theory there's also displaying a user card by clicking on a mention in composer's preview but that functionality is currently broken (and this PR is a prerequisite πŸ˜‰)

---

I changed `.user-card, .group-card` to `.fk-d-menu[data-identifier="card"]` because that regressed when we moved user cards to float-kit: they now nested inside `.fk-d-menu` so its `z-index` is now important (effectively the cards had `z-index: z("dropdown")`)
@CvX
Copy link
Contributor Author

CvX commented Jun 15, 2024

cc: @discourse/designers

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Jun 15, 2024
@CvX CvX merged commit 1defb94 into main Jun 18, 2024
16 checks passed
@CvX CvX deleted the 0-a-z-index-cards branch June 18, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
2 participants