@@ -3,14 +3,12 @@ import { property } from 'lit/decorators.js';
3
3
import {
4
4
InterfaceLookType ,
5
5
InterfaceLookDefaultValue ,
6
- Size ,
7
6
} from '@umbraco-ui/uui-base/lib/types' ;
8
7
9
8
/**
10
9
* Tag component from Umbraco UI components library. Comes in one shape, but different looks and sizes
11
10
* @element uui-tag
12
11
* @slot - for tag contents
13
- * @cssprop --uui-tag-font-size - Set the components font size. Setting this property overwrites what comes from size attribute.
14
12
*/
15
13
export class UUITagElement extends LitElement {
16
14
static styles = [
@@ -19,9 +17,9 @@ export class UUITagElement extends LitElement {
19
17
display: inline-block;
20
18
font-family: inherit;
21
19
font-weight: 700;
22
- line-height: 1.1;
23
- font-size: var(--uui-tag-font-size, 0.9em);
24
- padding: calc(var(--uui-tag-font-size) / 2.3) var(--uui-tag-font-size) ;
20
+ line-height: 1.1; /* should have have another line height, lets check with multiple line tag. */
21
+ /* font-size: var(--uui-tag-font-size, 0.9em);*/
22
+ padding: 0.5em 1em ;
25
23
border-radius: 1000px;
26
24
background-color: var(--uui-interface-surface-alt);
27
25
color: var(--uui-interface-contrast);
@@ -34,24 +32,6 @@ export class UUITagElement extends LitElement {
34
32
align-items: center;
35
33
}
36
34
37
- /** TODO: Revisit size options: */
38
-
39
- :host([size='xs']) {
40
- --uui-tag-font-size: 10px;
41
- }
42
- :host([size='s']) {
43
- --uui-tag-font-size: 11px;
44
- }
45
- :host([size='m']) {
46
- --uui-tag-font-size: 12px;
47
- }
48
- :host([size='l']) {
49
- --uui-tag-font-size: 13px;
50
- }
51
- :host([size='xl']) {
52
- --uui-tag-font-size: 14px;
53
- }
54
-
55
35
/* Looks */
56
36
:host([look='primary']) {
57
37
background-color: var(--uui-look-primary-surface);
@@ -92,15 +72,6 @@ export class UUITagElement extends LitElement {
92
72
` ,
93
73
] ;
94
74
95
- /**
96
- * Defines the size of the tag. It changes the `--uui-tag-font-size` value.
97
- * @type {'xs' | 's' | 'm' | 'l' | 'xl' }
98
- * @attr
99
- * @default m
100
- */
101
- @property ( { reflect : true } )
102
- public size : Size = 'm' ;
103
-
104
75
/**
105
76
* Defines the look of the tag.
106
77
* @type {''|'primary'|'secondary'|'outline'|'placeholder'|'positive'|'warning'|'danger' }
0 commit comments