Skip to content

Commit

Permalink
fix(@clayui/css): Cadmin Button Groups remove unused components `drop…
Browse files Browse the repository at this point in the history
…down-toggle-split` and `btn-group-toggle`
  • Loading branch information
pat270 committed May 3, 2021
1 parent 46868c7 commit 3fef3d5
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions packages/clay-css/src/scss/cadmin/components/_button-groups.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,36 +102,6 @@
}
}

// Dropdown Toggle Split
// Makes .btn narrower

.dropdown-toggle-split {
padding-left: $cadmin-btn-padding-x * 0.75;
padding-right: $cadmin-btn-padding-x * 0.75;

@if ($cadmin-enable-caret) {
&::after,
.dropup::after,
.dropright::after {
margin-left: 0;
}

.dropleft::before {
margin-right: 0;
}
}
}

.btn-sm + .dropdown-toggle-split {
padding-right: $cadmin-btn-padding-x-sm * 0.75;
padding-left: $cadmin-btn-padding-x-sm * 0.75;
}

.btn-lg + .dropdown-toggle-split {
padding-right: $cadmin-btn-padding-x-lg * 0.75;
padding-left: $cadmin-btn-padding-x-lg * 0.75;
}

// Button Group Vertical

.btn-group-vertical {
Expand Down Expand Up @@ -171,31 +141,3 @@
}
}
}

// Checkbox and radio options
//
// In order to support the browser's form validation feedback, powered by the
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
// `display: none;` or `visibility: hidden;` as that also hides the popover.
// Simply visually hiding the inputs via `opacity` would leave them clickable in
// certain cases which is prevented by using `clip` and `pointer-events`.
// This way, we ensure a DOM element is visible to position the popover from.
//
// See https://github.com/twbs/bootstrap/pull/12794 and
// https://github.com/twbs/bootstrap/pull/14559 for more information.

.btn-group-toggle {
> .btn,
> .btn-group > .btn {
// Override default `<label>` value

margin-bottom: 0;

input[type='radio'],
input[type='checkbox'] {
clip: rect(0, 0, 0, 0);
pointer-events: none;
position: absolute;
}
}
}

0 comments on commit 3fef3d5

Please sign in to comment.