Skip to content

Commit 23d74d3

Browse files
committed
further updates
1 parent abcb237 commit 23d74d3

File tree

13 files changed

+66
-38
lines changed

13 files changed

+66
-38
lines changed

packages/uui-box/lib/uui-box.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function slotHasContent(target: EventTarget | null): boolean {
2121
* @cssprop --uui-box-header-padding - overwrite the header padding
2222
* @cssprop --uui-box-default-padding - overwrite the box padding
2323
* @cssprop --uui-box-box-shadow - overwrite the box shadow, default is var(--uui-shadow-depth-1)
24-
* @cssprop --uui-box-border-radius - overwrite the box border-radius, default is var(--uui-border-radius)
24+
* @cssprop --uui-box-border-radius - overwrite the box border-radius, default is var(--uui-border-radius-3)
2525
* @cssprop --uui-box-border-color - overwrites the box border colorm default is var(--uui-color-divider-standalone)
2626
*/
2727
@defineElement('uui-box')
@@ -123,7 +123,7 @@ export class UUIBoxElement extends LitElement {
123123
display: block;
124124
border: 1px solid
125125
var(--uui-box-border-color, var(--uui-color-divider-standalone));
126-
border-radius: var(--uui-box-border-radius, var(--uui-border-radius));
126+
border-radius: var(--uui-box-border-radius, var(--uui-border-radius-3));
127127
background-color: var(--uui-color-surface);
128128
}
129129

packages/uui-button-group/lib/uui-button-group.element.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export class UUIButtonGroupElement extends LitElement {
3232
}
3333
3434
::slotted(*:first-child) {
35-
--uui-button-border-radius: var(--uui-border-radius) 0 0
36-
var(--uui-border-radius);
35+
--uui-button-border-radius: var(--uui-border-radius-3) 0 0
36+
var(--uui-border-radius-3);
3737
}
3838
::slotted(*:last-child) {
39-
--uui-button-border-radius: 0 var(--uui-border-radius)
40-
var(--uui-border-radius) 0;
39+
--uui-button-border-radius: 0 var(--uui-border-radius-3)
40+
var(--uui-border-radius-3) 0;
4141
}
4242
4343
::slotted(*:hover) {

packages/uui-button/lib/uui-button.element.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
290290
291291
text-align: center;
292292
font-size: var(--uui-button-font-size, inherit);
293-
font-weight: var(--uui-button-font-weight, 500);
293+
font-weight: var(--uui-button-font-weight, 400);
294294
transition:
295295
background-color 80ms,
296296
border-color 80ms,
@@ -355,7 +355,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
355355
border-style: solid;
356356
border-radius: var(
357357
--uui-button-border-radius,
358-
var(--uui-border-radius-2)
358+
var(--uui-border-radius-3)
359359
);
360360
cursor: pointer;
361361
@@ -498,7 +498,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
498498
border-color: var(--uui-button-border-color, transparent);
499499
500500
/* special for primary: */
501-
font-weight: var(--uui-button-font-weight, 700);
501+
font-weight: var(--uui-button-font-weight, 400);
502502
}
503503
504504
:host([look='primary']:hover) #button {
@@ -533,7 +533,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
533533
border-color: var(--uui-button-border-color, transparent);
534534
535535
/* special for secondary: */
536-
font-weight: var(--uui-button-font-weight, 700);
536+
font-weight: var(--uui-button-font-weight, 400);
537537
}
538538
:host([look='secondary']:hover) #button {
539539
background-color: var(
@@ -562,7 +562,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
562562
);
563563
564564
/* special for outline: */
565-
font-weight: var(--uui-button-font-weight, 700);
565+
font-weight: var(--uui-button-font-weight, 400);
566566
}
567567
:host([look='outline']:not([disabled]):hover) #button {
568568
background-color: var(--uui-button-background-color-hover, transparent);

packages/uui-card-block-type/lib/uui-card-block-type.element.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class UUICardBlockTypeElement extends UUICardElement {
143143
144144
slot:not([name])::slotted(*) {
145145
align-self: center;
146-
border-radius: var(--uui-border-radius);
146+
border-radius: var(--uui-border-radius-2);
147147
object-fit: cover;
148148
max-width: 100%;
149149
max-height: 100%;
@@ -154,6 +154,7 @@ export class UUICardBlockTypeElement extends UUICardElement {
154154
position: absolute;
155155
z-index: 1;
156156
inset: 0;
157+
margin-bottom: 0;
157158
color: var(--uui-color-interactive);
158159
border: none;
159160
cursor: pointer;
@@ -208,7 +209,7 @@ export class UUICardBlockTypeElement extends UUICardElement {
208209
inset: 0;
209210
z-index: -1;
210211
border-top: 1px solid var(--uui-color-divider);
211-
border-radius: 0 0 var(--uui-border-radius) var(--uui-border-radius);
212+
border-radius: 0 0 var(--uui-border-radius-2) var(--uui-border-radius-2);
212213
background-color: var(--uui-color-surface);
213214
pointer-events: none;
214215
opacity: 0.96;

packages/uui-card-media/lib/uui-card-media.element.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class UUICardMediaElement extends UUICardElement {
158158
159159
slot:not([name])::slotted(*) {
160160
align-self: center;
161-
border-radius: var(--uui-border-radius);
161+
border-radius: var(--uui-border-radius-2);
162162
object-fit: cover;
163163
width: 100%;
164164
height: 100%;
@@ -169,6 +169,7 @@ export class UUICardMediaElement extends UUICardElement {
169169
position: absolute;
170170
z-index: 1;
171171
inset: 0;
172+
margin-bottom: 0;
172173
color: var(--uui-color-interactive);
173174
border: none;
174175
cursor: pointer;
@@ -220,7 +221,7 @@ export class UUICardMediaElement extends UUICardElement {
220221
inset: 0;
221222
z-index: -1;
222223
border-top: 1px solid var(--uui-color-divider);
223-
border-radius: 0 0 var(--uui-border-radius) var(--uui-border-radius);
224+
border-radius: 0 0 var(--uui-border-radius-2) var(--uui-border-radius-2);
224225
background-color: var(--uui-color-surface);
225226
pointer-events: none;
226227
opacity: 0.96;

packages/uui-card/lib/uui-card.element.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ export class UUICardElement extends SelectOnlyMixin(
113113
width: 100%;
114114
justify-content: center;
115115
box-sizing: border-box;
116-
box-shadow: var(--uui-shadow-depth-1);
117-
border-radius: var(--uui-border-radius);
116+
border-radius: var(--uui-border-radius-2);
118117
min-height: var(--uui-layout-medium);
119118
background-color: var(--uui-color-surface);
120119
--uui-card-border-width: 3px;
@@ -143,7 +142,7 @@ export class UUICardElement extends SelectOnlyMixin(
143142
z-index: 1;
144143
box-sizing: border-box;
145144
border: var(--uui-card-border-width) solid var(--uui-color-invalid);
146-
border-radius: var(--uui-border-radius);
145+
border-radius: var(--uui-border-radius-2);
147146
}
148147
149148
button {
@@ -169,7 +168,7 @@ export class UUICardElement extends SelectOnlyMixin(
169168
outline-width: var(--uui-card-border-width);
170169
outline-style: solid;
171170
outline-offset: var(--uui-card-border-width);
172-
border-radius: var(--uui-border-radius);
171+
border-radius: var(--uui-border-radius-2);
173172
}
174173
175174
:host([selectable]) {
@@ -193,7 +192,7 @@ export class UUICardElement extends SelectOnlyMixin(
193192
height: 100%;
194193
box-sizing: border-box;
195194
border: 2px solid var(--uui-color-selected);
196-
border-radius: calc(var(--uui-border-radius) + 2px);
195+
border-radius: calc(var(--uui-border-radius-2) + 2px);
197196
box-shadow:
198197
0 0 4px 0 var(--uui-color-selected),
199198
inset 0 0 2px 0 var(--uui-color-selected);

packages/uui-color-area/lib/uui-color-area.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export class UUIColorAreaElement extends LitElement {
311311
forced-color-adjust: none;
312312
border-radius: var(
313313
--uui-color-area-border-radius,
314-
var(--uui-border-radius)
314+
var(--uui-border-radius-2)
315315
);
316316
}
317317
.color-area__handle {

packages/uui-combobox/lib/uui-combobox.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class UUIComboboxElement extends UUIFormControlMixin(LitElement, '') {
417417
418418
#combobox-input {
419419
width: 100%;
420-
border-radius: var(--uui-border-radius);
420+
border-radius: var(--uui-border-radius-3);
421421
}
422422
423423
#combobox-popover {
@@ -455,7 +455,7 @@ export class UUIComboboxElement extends UUIFormControlMixin(LitElement, '') {
455455
var(--uui-color-surface)
456456
);
457457
border: 1px solid var(--uui-color-border);
458-
border-radius: var(--uui-border-radius);
458+
border-radius: var(--uui-border-radius-3);
459459
width: 100%;
460460
box-sizing: border-box;
461461
box-shadow: var(--uui-shadow-depth-3);

packages/uui-css/lib/custom-properties/sizes.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
--uui-border-radius: var(--uui-size-2);
5454
--uui-border-radius-1: var(--uui-size-2);
5555
--uui-border-radius-2: var(--uui-size-4);
56-
--uui-border-radius-3: var(--uui-size-6);
56+
--uui-border-radius-3: var(--uui-size-5);
5757

5858
/** Typography */
5959
--uui-type-default-size: 14px;

packages/uui-css/lib/typography/lato.css

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
/* Webfont: LatoLatin-Black */
1212
@font-face {
1313
font-family: 'Lato';
14-
src: local('LatoLatin Black'), local('LatoLatin-Black'),
14+
src:
15+
local('LatoLatin Black'),
16+
local('LatoLatin-Black'),
1517
url('../../assets/fonts/lato/LatoLatin-Black.woff2') format('woff2');
1618
font-style: normal;
1719
font-display: swap;
@@ -22,7 +24,9 @@
2224
/* Webfont: LatoLatin-BlackItalic */
2325
@font-face {
2426
font-family: 'Lato';
25-
src: local('LatoLatin BlackItalic'), local('LatoLatin-BlackItalic'),
27+
src:
28+
local('LatoLatin BlackItalic'),
29+
local('LatoLatin-BlackItalic'),
2630
url('../../assets/fonts/lato/LatoLatin-BlackItalic.woff2') format('woff2');
2731
font-style: italic;
2832
font-weight: 900;
@@ -33,7 +37,9 @@
3337
/* Webfont: LatoLatin-Bold */
3438
@font-face {
3539
font-family: 'Lato';
36-
src: local('LatoLatin Bold'), local('LatoLatin-Bold'),
40+
src:
41+
local('LatoLatin Bold'),
42+
local('LatoLatin-Bold'),
3743
url('../../assets/fonts/lato/LatoLatin-Bold.woff2') format('woff2');
3844
font-style: normal;
3945
font-weight: 700;
@@ -44,7 +50,9 @@
4450
/* Webfont: LatoLatin-BoldItalic */
4551
@font-face {
4652
font-family: 'Lato';
47-
src: local('LatoLatin BoldItalic'), local('LatoLatin-BoldItalic'),
53+
src:
54+
local('LatoLatin BoldItalic'),
55+
local('LatoLatin-BoldItalic'),
4856
url('../../assets/fonts/lato/LatoLatin-BoldItalic.woff2') format('woff2');
4957
font-style: italic;
5058
font-weight: 700;
@@ -55,7 +63,9 @@
5563
/* Webfont: LatoLatin-Italic */
5664
@font-face {
5765
font-family: 'Lato';
58-
src: local('LatoLatin Italic'), local('LatoLatin-Italic'),
66+
src:
67+
local('LatoLatin Italic'),
68+
local('LatoLatin-Italic'),
5969
url('../../assets/fonts/lato/LatoLatin-Italic.woff2') format('woff2');
6070
font-style: italic;
6171
font-weight: 400;
@@ -66,7 +76,9 @@
6676
/* Webfont: LatoLatin-Regular */
6777
@font-face {
6878
font-family: 'Lato';
69-
src: local('LatoLatin Regular'), local('LatoLatin-Regular'),
79+
src:
80+
local('LatoLatin Regular'),
81+
local('LatoLatin-Regular'),
7082
url('../../assets/fonts/lato/LatoLatin-Regular.woff2') format('woff2');
7183
font-style: normal;
7284
font-weight: 400;
@@ -77,7 +89,9 @@
7789
/* Webfont: LatoLatin-Light */
7890
@font-face {
7991
font-family: 'Lato';
80-
src: local('LatoLatin Light'), local('LatoLatin-Light'),
92+
src:
93+
local('LatoLatin Light'),
94+
local('LatoLatin-Light'),
8195
url('../../assets/fonts/lato/LatoLatin-Light.woff2') format('woff2');
8296
font-style: normal;
8397
font-weight: 300;
@@ -88,7 +102,9 @@
88102
/* Webfont: LatoLatin-LightItalic */
89103
@font-face {
90104
font-family: 'Lato';
91-
src: local('LatoLatin LightItalic'), local('LatoLatin-LightItalic'),
105+
src:
106+
local('LatoLatin LightItalic'),
107+
local('LatoLatin-LightItalic'),
92108
url('../../assets/fonts/lato/LatoLatin-LightItalic.woff2') format('woff2');
93109
font-style: italic;
94110
font-weight: 300;

0 commit comments

Comments
 (0)