Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(button): add size, shape and color customization to button
BREAKING CHANGE: Convert monolithic button styles to multiple class names Previously, `k-button` held all the styling information related to the button component. Now, styles are split in multiple class names with each being scoped to a single button appearance property: * `shape` controls if the button is square or not; * `size` controls the overall physical size of a button; * `themeColor` controls which color is used to style a button; * `fillMode` controls how the color is applied; * `rounded` controls what border radius is applied to a button. Each property generates component specific class name `k-button-square`, `k-button-{size}`, `k-button-{fillMode}`, `k-button-{fillMode}-{themeColor}`. Note: without `fillMode`, there is no way to apply themeColor, that's why the `themeColor` class is composite. The only notable exception is rounded, which sets the same class name for all components -- `k-rounded-{rounded}`. You can find more information about the values of each property in the documentation of the button component -- /docs/components/button. BREAKING CHANGE: Remove residual button styles No further customization is applied to buttons when hosted inside other components, except in very few specific cases. For instance, in Material theme we would slightly dim the normal buttons and remove the shadow, which may or may not be desired. BREAKING CHANGE: Add kendo prefix to all button variables Change variable names from `$button-*` to `$kendo-button-*`.
- Loading branch information
1 parent
94e093b
commit db31d3f
Showing
99 changed files
with
1,409 additions
and
1,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
@import "~@progress/kendo-theme-default/scss/button/_layout.scss"; | ||
|
||
@include exports("button/layout/bootstrap") { | ||
|
||
// Default button | ||
.k-button { | ||
transition: $transition; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.