Skip to content

Commit

Permalink
fix: ensure consistent width for inputs and pickers when inside toolb…
Browse files Browse the repository at this point in the history
…ar and other containers
  • Loading branch information
joneff committed Dec 29, 2021
1 parent 971b6ec commit 503e68b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 23 deletions.
13 changes: 13 additions & 0 deletions packages/default/scss/appbar/_layout.scss
Expand Up @@ -50,6 +50,19 @@
border-width: 0 0 0 1px;
display: inline-block;
}


// Appbar child components
.k-textbox,
.k-combobox,
.k-dropdown,
.k-searchbox,
.k-numerictextbox,
.k-datepicker,
.k-timepicker,
.k-datetimepicker {
width: 10em;
}
}

.k-appbar-static {
Expand Down
1 change: 1 addition & 0 deletions packages/default/scss/dropdowngrid/_layout.scss
@@ -1,4 +1,5 @@
@include exports("dropdowngrid/layout") {

.k-dropdowngrid-popup {
overflow: hidden;
}
Expand Down
10 changes: 1 addition & 9 deletions packages/default/scss/editor/_layout.scss
Expand Up @@ -153,6 +153,7 @@
}

// Toolbar
.k-editor-toolbar,
.k-editor > .k-toolbar {
border-width: 0 0 $toolbar-border-width 0;
flex-shrink: 0;
Expand Down Expand Up @@ -304,15 +305,6 @@
}
}

.k-editor-widget .k-colorpicker {}

.k-rtl .k-editor .k-editor-widget .k-dropdown-wrap {
padding-left: 0;

.k-select {
border-width: 0;
}
}

// Find and replace dialog
.k-editor-find-replace {
Expand Down
4 changes: 0 additions & 4 deletions packages/default/scss/forms/_layout.scss
Expand Up @@ -163,10 +163,6 @@
display: inline-flex;
width: 100%;
}

.k-editor .k-dropdown {
width: $input-default-width;
}
}

// Form Buttons Container
Expand Down
2 changes: 1 addition & 1 deletion packages/default/scss/scheduler/_layout.scss
Expand Up @@ -1128,7 +1128,7 @@
.k-widget.k-recur-month,
.k-widget.k-recur-weekday,
.k-widget.k-recur-weekday-offset {
width: 9em;
width: 10em;
}

}
Expand Down
12 changes: 4 additions & 8 deletions packages/default/scss/spreadsheet/_layout.scss
Expand Up @@ -97,14 +97,10 @@
width: auto;
min-width: $form-line-height * 1em;
}
[data-tool="fontSize"] {
width: 5 * $spacer;
}
[data-tool="fontFamily"] {
width: 6 * $spacer;
}
[data-tool="format"] {
width: 4 * $spacer;

.k-combobox,
.k-dropdown {
width: 5em;
}
}

Expand Down
15 changes: 15 additions & 0 deletions packages/default/scss/toolbar/_layout.scss
Expand Up @@ -100,12 +100,26 @@
flex: 1 0 0%;
}


// Template
.k-toolbar-template {
align-self: center;
align-items: center;
}


// Child components
.k-textbox,
.k-combobox,
.k-dropdown,
.k-searchbox,
.k-numerictextbox,
.k-datepicker,
.k-timepicker,
.k-datetimepicker {
width: 10em;
}

}


Expand All @@ -120,6 +134,7 @@

// Angular specific
kendo-toolbar-renderer {
display: inline-block;
border-color: inherit;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/material/scss/filter/_variables.scss
Expand Up @@ -5,7 +5,7 @@ $filter-padding-y: $filter-padding-x !default;
$filter-bottom-margin: 2.1em !default;
$filter-line-size: 1px !default;

$filter-operator-dropdown-width: 19em !default;
$filter-operator-dropdown-width: 15em !default;

$filter-preview-field-text: $primary !default;
$filter-preview-operator-text: $subtle-text !default;

0 comments on commit 503e68b

Please sign in to comment.