Skip to content

Commit

Permalink
Fix CSS for vertical button groups (#869)
Browse files Browse the repository at this point in the history
Only up to Bootstrap 2.x "btn-group" and "btn-group-vertical"
where needed for vertical orientation. Since Bootstrap 3.x
only the latter is required.

(cherry picked from commit 0fe8b02)
  • Loading branch information
mweirauch authored and martin-g committed Aug 24, 2020
1 parent 376667e commit bc47eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -81,7 +81,7 @@ protected void onInitialize() {
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);

Attributes.addClass(tag, orientation.cssClassName(), "btn-group");
Attributes.addClass(tag, orientation.cssClassName());

if (!Size.Default.equals(size)) {
Attributes.addClass(tag, size.cssClassName());
Expand Down
Expand Up @@ -79,7 +79,7 @@ public enum Orientation implements ICssClassNameProvider {

@Override
public String cssClassName() {
return equals(Horizontal) ? "" : "btn-group-" + name().toLowerCase();
return equals(Horizontal) ? "btn-group" : "btn-group-vertical";
}
}

Expand Down

0 comments on commit bc47eb8

Please sign in to comment.