Skip to content

Commit

Permalink
fix(colorpicker): input cut off in bootstrap theme
Browse files Browse the repository at this point in the history
  • Loading branch information
JoomFX authored and elena-gancheva committed Oct 9, 2019
1 parent 4e6c49e commit 91bd81a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bootstrap/scss/_variables.scss
Expand Up @@ -248,6 +248,8 @@ $colorpicker-slider-track-size: 10px !default;
$colorpicker-slider-border-radius: 10px !default;
$colorpicker-input-width: 52px !default;
$colorpicker-hex-input-width: 85px !default;
$colorpicker-input-padding-x: $input-padding-y !default;
$colorpicker-input-padding-y: $input-padding-y !default;


$list-item-padding-x: $dropdown-item-padding-x !default;
Expand Down
2 changes: 2 additions & 0 deletions packages/default/scss/_variables.scss
Expand Up @@ -215,6 +215,8 @@ $colorpicker-slider-track-size: 10px !default;
$colorpicker-slider-border-radius: 10px !default;
$colorpicker-hex-input-width: 65px !default;
$colorpicker-input-width: 48px !default;
$colorpicker-input-padding-x: $input-padding-y !default;
$colorpicker-input-padding-y: $input-padding-y !default;


// Theme colors
Expand Down
10 changes: 10 additions & 0 deletions packages/default/scss/colorpicker/_layout.scss
Expand Up @@ -251,6 +251,11 @@
.k-gradient-values {
justify-content: space-between;

.k-input,
.k-textbox {
padding: $colorpicker-input-padding-y $colorpicker-input-padding-x;
}

div,
input,
.k-numerictextbox {
Expand All @@ -265,6 +270,11 @@
width: $colorpicker-hex-input-width;
}
}
.k-numerictextbox {
.k-input {
text-overflow: clip;
}
}


// Selected color
Expand Down
2 changes: 2 additions & 0 deletions packages/material/scss/_variables.scss
Expand Up @@ -220,6 +220,8 @@ $colorpicker-slider-track-size: 10px !default;
$colorpicker-slider-border-radius: 10px !default;
$colorpicker-input-width: 50px !default;
$colorpicker-hex-input-width: 70px !default;
$colorpicker-input-padding-x: $input-padding-x !default;
$colorpicker-input-padding-y: $input-padding-y !default;

$list-item-padding-x: $padding-x * 1.5 !default;
$list-item-padding-y: $padding-y / 2 !default;
Expand Down

0 comments on commit 91bd81a

Please sign in to comment.