Skip to content

breaking(value-box): Remove border-auto logic and class - #902

Merged
gadenbuie merged 8 commits into
mainfrom
refresh/value-boxes-simplify-borders
Nov 13, 2023
Merged

gadenbuie merged 8 commits into
mainfrom
refresh/value-boxes-simplify-borders

Conversation

@gadenbuie

@gadenbuie gadenbuie commented Nov 13, 2023 •

Copy link
Copy Markdown
Member

Follow up to #897 so that values boxes and cards use the same styles for shadows and borders.

  • Removes the .border-auto class and the auto-border logic from the markup construction in R.
  • Removes the $bslib-value-box-enable-shadow Sass variable so that $bslib-enable-shadows is the unique toggle for bslib-enabled shadows.
  • Removes the .border-auto and custom box shadow styles from the value box CSS so that value boxes follow cards.

I marked this "breaking" but it breaks yet-to-be-released and undocumented features, in R at least. In Python, the border auto styles were just recently released but are also only used by our Bootstrap preset.

@gadenbuie
gadenbuie requested a review from cpsievert November 13, 2023 15:38
@gadenbuie gadenbuie self-assigned this Nov 13, 2023
Comment thread inst/components/scss/value_box.scss Resolved
@gadenbuie

Copy link
Copy Markdown
Member Author

I'm not going to add a news item because this is changing undocumented and yet-unreleased behavior, but I'll keep the breaking as a flag for python updates.

@gadenbuie
gadenbuie merged commit ffab5b0 into main Nov 13, 2023
@gadenbuie
gadenbuie deleted the refresh/value-boxes-simplify-borders branch November 13, 2023 20:11
cpsievert added a commit to posit-dev/py-shiny that referenced this pull request Nov 21, 2023
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