Centered icon for button when empty label#83
Centered icon for button when empty label#83bilbaoba wants to merge 1 commit intoericrayanderson:masterfrom
Conversation
|
I add minor modification to the class of a modal button to correct a bug I saw when you use in the same row a modal button and a regular button. |
|
Thanks - manipulating the CSS properties for each button is quite a pain |
|
Hi @ericrayanderson, I test this PR and it's working with the new version of package (v1.0.0). Regards. |
|
Hi Everyone, @ericrayanderson, I just had a minor correction with modal. It appears modal won't open since we use materialize-v1.0.0.js. This last commit correct this minor bug. Also I read about few more options we can had to modals (https://materializecss.com/modals.html) : modals with fixed footer and bottom sheet modals. I don't know if Eric want to keep the package the simplest possible or if we can provide the most of possibility with materialize. I can quickly had two options in the Thanks. |
94ad10c to
ca34962
Compare
|
@bilbaoba - this fix has been implemented in v1.0.1. Thank you for catching and solving that bug. |
d0cdd72 to
f40562b
Compare
f40562b to
1ff1815
Compare
|
@ericrayanderson I rebase my branch onto the last version of the package with a unique commit. This PR still correct :
To test : library(shiny)
library(shinymaterial)
ui <- material_page(
title = "Basic Page",
tags$h1("Page Content"),
material_row(
material_column(
material_button("test", label = "", icon = "add", depth = 5, color = "red"),
material_button("test2", label = NULL, icon = "add"),
material_modal("test3", button_text = "", title = "Test3", button_icon = "add"),
material_modal("test4", button_text = NULL, title = "Test4", button_icon = "add", floating_button = T)
)
)
)
server <- function(input, output) {}
shinyApp(ui = ui, server = server) |
Hi Eric & shinymaterial users,
I propose to center the icon for button when label is null or empty.
Changes :
material_buttonandmaterial_modalfunctionsTest :
After install the package :
Best regards.