Skip to content

Commit

Permalink
fix(button): loading buttons still shows labels
Browse files Browse the repository at this point in the history
Whenever a loading button contains any kind of label it was still shown
  • Loading branch information
lubber-de committed Apr 11, 2022
1 parent b83d59e commit bcd29ea
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,24 @@

box-shadow: 0 0 0 1px transparent;
}
}
& when (@variationButtonLabeledIcon){
.ui.labeled.icon.loading.button .icon {
.ui.ui.ui.loading.button .label {
background-color: transparent;
box-shadow: none;
border-color: transparent;
color: transparent;
}
}
& when (@variationButtonBasic){
.ui.basic.loading.button:not(.inverted)::before {
border-color: @loaderFillColor;
& when (@variationButtonLabeledIcon){
.ui.labeled.icon.loading.button .icon {
background-color: transparent;
box-shadow: none;
}
}
.ui.basic.loading.button:not(.inverted)::after {
border-color: @loaderLineColor;
& when (@variationButtonBasic){
.ui.basic.loading.button:not(.inverted)::before {
border-color: @loaderFillColor;
}
.ui.basic.loading.button:not(.inverted)::after {
border-color: @loaderLineColor;
}
}
}
& when (@variationButtonDisabled){
Expand Down

0 comments on commit bcd29ea

Please sign in to comment.