Skip to content

Commit 026e35c

Browse files
refactor!: rename CSS property for input-field border radius (#5600) (#5601)
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
1 parent 3a8c45d commit 026e35c

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

packages/date-time-picker/theme/lumo/vaadin-date-time-picker-styles.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themab
88
const dateTimePicker = css`
99
::slotted([slot='date-picker']) {
1010
margin-inline-end: 2px;
11-
--vaadin-input-container-top-end-radius: 0;
12-
--vaadin-input-container-bottom-end-radius: 0;
11+
--vaadin-input-field-top-end-radius: 0;
12+
--vaadin-input-field-bottom-end-radius: 0;
1313
}
1414
1515
::slotted([slot='time-picker']) {
16-
--vaadin-input-container-top-start-radius: 0;
17-
--vaadin-input-container-bottom-start-radius: 0;
16+
--vaadin-input-field-top-start-radius: 0;
17+
--vaadin-input-field-bottom-start-radius: 0;
1818
}
1919
`;
2020

packages/input-container/src/vaadin-input-container.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ export class InputContainer extends ThemableMixin(DirMixin(PolymerElement)) {
2121
flex: 0 1 auto;
2222
border-radius:
2323
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
24-
var(--vaadin-input-container-top-start-radius, var(--__border-radius))
25-
var(--vaadin-input-container-top-end-radius, var(--__border-radius))
26-
var(--vaadin-input-container-bottom-end-radius, var(--__border-radius))
27-
var(--vaadin-input-container-bottom-start-radius, var(--__border-radius));
28-
--_border-radius: var(--vaadin-input-container-border-radius, 0px);
24+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
25+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
26+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
27+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
28+
--_border-radius: var(--vaadin-input-field-border-radius, 0px);
2929
}
3030
3131
:host([dir='rtl']) {
3232
border-radius:
3333
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
34-
var(--vaadin-input-container-top-end-radius, var(--_border-radius))
35-
var(--vaadin-input-container-top-start-radius, var(--_border-radius))
36-
var(--vaadin-input-container-bottom-start-radius, var(--_border-radius))
37-
var(--vaadin-input-container-bottom-end-radius, var(--_border-radius));
34+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
35+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
36+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
37+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
3838
}
3939
4040
:host([hidden]) {

packages/input-container/theme/lumo/vaadin-input-container-styles.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ registerStyles(
1717
box-sizing: border-box;
1818
border-radius:
1919
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
20-
var(--vaadin-input-container-top-start-radius, var(--_input-container-radius))
21-
var(--vaadin-input-container-top-end-radius, var(--_input-container-radius))
22-
var(--vaadin-input-container-bottom-end-radius, var(--_input-container-radius))
23-
var(--vaadin-input-container-bottom-start-radius, var(--_input-container-radius));
20+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
21+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
22+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
23+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
2424
/* Fallback */
25-
--_input-container-radius: var(--vaadin-input-container-border-radius, var(--lumo-border-radius-m));
25+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
2626
}
2727
2828
:host([dir='rtl']) {
2929
border-radius:
3030
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
31-
var(--vaadin-input-container-top-end-radius, var(--_input-container-radius))
32-
var(--vaadin-input-container-top-start-radius, var(--_input-container-radius))
33-
var(--vaadin-input-container-bottom-start-radius, var(--_input-container-radius))
34-
var(--vaadin-input-container-bottom-end-radius, var(--_input-container-radius));
31+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
32+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
33+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
34+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
3535
}
3636
3737
/* Used for hover and activation effects */

packages/vaadin-lumo-styles/style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const globals = css`
3232
html {
3333
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
3434
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
35-
--vaadin-input-container-border-radius: var(--lumo-border-radius-m);
35+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
3636
}
3737
`;
3838

0 commit comments

Comments
 (0)