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

Apply value_box()'s value/title CSS more generically to any input tags #605

Merged
merged 4 commits into from
Jun 2, 2023

Conversation

cpsievert
Copy link
Collaborator

Closes #573

@cpsievert cpsievert merged commit c277c4e into main Jun 2, 2023
@cpsievert cpsievert deleted the value-box-dynamic-val-style branch June 2, 2023 19:22
cpsievert added a commit that referenced this pull request Jun 2, 2023
…heir not 0 height

This reduces the chance of 'layout shift' when providing dynamic values
@gadenbuie gadenbuie mentioned this pull request Jun 6, 2023
3 tasks
Comment on lines +39 to +48
// the title
> :first-child {
font-size: $h6-font-size;
margin-bottom: $spacer / 4;
}
// the value
> :nth-child(2) {
font-size: $h2-font-size;
margin-bottom: $spacer / 2;
}
Copy link
Member

Choose a reason for hiding this comment

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

Am I reading between the lines correctly in guessing that you're using positional selectors here to make something like this easier?

value_box(
  title = uiOutput("vb-title"),
  value = uiOutput("vb-value")
)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep

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.

Improve value_box() behavior with dynamic values
2 participants