Skip to content

Commit

Permalink
feat(shiny-preset): Use outline buttons by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jun 30, 2023
1 parent 10dddd0 commit a826dd4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions inst/builtin/bs5/shiny/_rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.shiny-date-range-input .input-daterange .input-group-addon {
margin-right: -1px;
}

// Make all buttons outline buttons by default, but users can add `btn-solid`
// to use the "normal" solid styles
@each $color, $value in $theme-colors {
.btn-#{$color} {
@if $color == "default" {
@include button-outline-variant($dark);
} @else {
@include button-outline-variant($value);
}
}
.btn-#{$color}.btn-solid {
@include button-variant($value, $value);
}
}

0 comments on commit a826dd4

Please sign in to comment.