-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Usability: Component and Item radio group options styling is not working properly #18917
Conversation
@@ -1,3 +1,6 @@ | |||
// Radio button group | |||
.btn-group.radio{display:inline-block} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opening curly brace in a single line rule set {
should be preceded by at least one space
Declaration should be terminated by a semicolon
Colon after property should be followed by at least one space
Obviously the switcher doesnt support more than two options or it wouldnt be a switch |
Grouped buttons will derive from custom elements, so probably not muh point in trying to fix this here |
@brianteeman This is not about the switcher. It's about radio buttons (button groups). The switcher uses the class "switcher". |
This fixes each option colors: Use Global = Primary (blue) 0 or false = danger (red) anything else = success (green)
Nope! That code was wrongly put there it belongs to the field that actually renders those inputs. We'll fix this when we'll move the code to the custom elements. On our todo list |
@dgt41 great to know. Thanks. |
@dgt41 Can this Pull Request be closed? |
@franz-wohlkoenig nope, let's get some tests and merge this. Later on we'll move the code where it rightfully belongs |
@dgrammatiko what is the status here? |
I believe this will throw the error:
Seeing as the addition |
@wilsonge @franz-wohlkoenig no activity for over a year. Suggesting to close this one. @machadoug thanks for your PR! If you would like to get this in Joomla I recommend opening a new PR against the latest 4.0-dev branch. |
closed as stated above. |
I'm testing my extensions with Joomla 4.0 and I noticed a couple of styling issues with the options from the XML files.
The Lists requires two clicks in order to select an option, therefore when we have up to 4 options we always use radio buttons in order to improve usability. However the
class="btn-group"
is not working properly.Example XML Code
Expected result
XML options using useglobal=true in Joomla 3.8
Actual result
XML options using useglobal=true in Joomla 4.0 Alpha2
Result after proposed changes
Solution
Add the CSS code
.btn-group.radio{display:inline-block}
tojoomla-cms/templates/cassiopeia/css/template.min.css
Also, the Use global should be blue (Bootstrap primary class), therefore we need to remove the btn-outline-primary class from the label.