Skip to content

feat(card): Use an attribute to signal card is in full screen #669

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jul 12, 2023

Conversation

gadenbuie
Copy link
Member

Currently, when a card supports full screen expansion, we add the expand toggle button but there isn't anything that signals from the outer element that full screen expansion is possible.

This PR adds a .bslib-card[data-full-screen] to signal that a card has full screen capabilities and to track the full screen state. This means you can use [data-full-screen] to know that card can expand, [data-full-screen="false"] to know card is not full screen, or [data-full-screen="true"] to know it's expanded.

Allows us to use [data-full-screen] to know card has full screen capabilities

Or [data-full-screen="false"] to know card is collapsed (or ="true" to know it's expanded)
@gadenbuie gadenbuie requested a review from cpsievert July 12, 2023 14:06
@gadenbuie gadenbuie self-assigned this Jul 12, 2023
@gadenbuie gadenbuie changed the title Use an attribute to signal card is in full screen feat(card): Use an attribute to signal card is in full screen Jul 12, 2023
@gadenbuie gadenbuie mentioned this pull request Jul 12, 2023
@cpsievert cpsievert requested a review from schloerke July 12, 2023 15:59
@cpsievert
Copy link
Collaborator

Seems ok to me but tagging @schloerke since he's been writing tests around this recently

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants