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

inline works for checkbox and radio #356

Merged
merged 2 commits into from
Mar 31, 2021
Merged

inline works for checkbox and radio #356

merged 2 commits into from
Mar 31, 2021

Conversation

ncullen93
Copy link
Contributor

To get position="inline" to work for multiple_radio() and multiple_checkbox(), i had to wrap it in div(class="ui form", ...). Not sure how this will affect things downstream. Let me know what you think and I can add tests.

Reprex:

library(shiny)
library(shiny.semantic)

ui <- semanticPage(
  multiple_radio("radioboxes1", "Select Letter", LETTERS[1:6], value = "A"),
  multiple_radio("radioboxes2", "Select Letter", LETTERS[1:10], value = "A", position='inline'),
  multiple_checkbox("checkboxes1", "Select Letter", LETTERS[1:6], value = "A"),
  multiple_checkbox("checboxes2", "Select Letter", LETTERS[1:10], value = "A", position='inline')
)
server <- function(input, output, session) {}
shinyApp(ui, server)

DoD

  • Major project work has a corresponding task. If there’s no task for what you are doing, create it. Each task needs to be well defined and described.

  • Change has been tested (manually or with automated tests), everything runs correctly and works as expected. No existing functionality is broken.

  • No new error or warning messages are introduced.

  • All interaction with a semantic functions, examples and docs are written from the perspective of the person using or receiving it. They are understandable and helpful to this person.

  • If the change affects code or repo sctructure, README, documentation and code comments should be updated.

  • All code has been peer-reviewed before merging into any main branch.

  • All changes have been merged into the main branch we use for development (develop).

  • Continuous integration checks (linter, unit tests) are configured and passed.

  • Unit tests added for all new or changed logic.

  • All task requirements satisfied. The reviewer is responsible to verify each aspect of the task.

  • Any added or touched code follows our style-guide.

@dokato
Copy link
Contributor

dokato commented Mar 15, 2021

Thanks, @ncullen93 . I think that this should've had ui form class indeed. I'll test that and let you know soon.

Copy link
Contributor

@dokato dokato left a comment

Choose a reason for hiding this comment

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

Ok, LGTM after running a few examples, please check in tests whether "ui form" class is present.

@dokato dokato merged commit 75cfe89 into Appsilon:develop Mar 31, 2021
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