Skip to content

Commit ca0a475

Browse files
committed
update symbols
1 parent d533e89 commit ca0a475

File tree

4 files changed

+59
-20
lines changed

4 files changed

+59
-20
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,18 @@ export class UUICardContentNodeElement extends UUICardElement {
3636
@state()
3737
private _iconSlotHasContent = false;
3838

39-
protected fallbackIcon =
40-
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>';
39+
protected fallbackIcon = `<svg
40+
xmlns="http://www.w3.org/2000/svg"
41+
viewBox="0 0 24 24"
42+
fill="none"
43+
stroke="currentColor"
44+
stroke-width="1.75"
45+
stroke-linecap="round"
46+
stroke-linejoin="round"
47+
id="icon">
48+
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
49+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
50+
</svg>`;
4151

4252
private _onSlotIconChange(event: Event) {
4353
this._iconSlotHasContent =

packages/uui-ref-node/lib/uui-ref-node.element.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,18 @@ export class UUIRefNodeElement extends UUIRefElement {
6767
@state()
6868
private _iconSlotHasContent = false;
6969

70-
protected fallbackIcon =
71-
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>';
70+
protected fallbackIcon = `<svg
71+
xmlns="http://www.w3.org/2000/svg"
72+
viewBox="0 0 24 24"
73+
fill="none"
74+
stroke="currentColor"
75+
stroke-width="1.75"
76+
stroke-linecap="round"
77+
stroke-linejoin="round"
78+
id="icon">
79+
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
80+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
81+
</svg>`;
7282

7383
connectedCallback() {
7484
super.connectedCallback();

packages/uui-symbol-file/lib/uui-symbol-file.element.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { LitElement, html, css } from 'lit';
22
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
33
import { property } from 'lit/decorators.js';
4+
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
45

56
/**
67
* @element uui-file-symbol
@@ -16,21 +17,30 @@ export class UUISymbolFileElement extends LitElement {
1617
type = '';
1718

1819
render() {
19-
return html`<svg
20+
return html`
21+
<svg
2022
xmlns="http://www.w3.org/2000/svg"
21-
viewBox="0 0 512 512"
22-
width="100%"
23-
fill="currentColor"
23+
viewBox="0 0 24 24"
24+
fill="none"
25+
stroke="currentColor"
26+
stroke-width="0.6"
27+
stroke-linecap="round"
28+
stroke-linejoin="round"
2429
id="icon">
25-
<path
26-
d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z" />
30+
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
31+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
2732
</svg>
33+
2834
${this.type
29-
? html`<span id="file-type">${this.type.toUpperCase()}</span>`
30-
: ''} `;
35+
? html`<small id="file-type" class="uui-small"
36+
>${this.type.toUpperCase()}</small
37+
>`
38+
: ''}
39+
`;
3140
}
3241

3342
static styles = [
43+
UUITextStyles,
3444
css`
3545
:host {
3646
position: relative;
@@ -39,8 +49,8 @@ export class UUISymbolFileElement extends LitElement {
3949
4050
#file-type {
4151
position: absolute;
42-
bottom: 24%;
43-
left: 25.5%;
52+
bottom: 20%;
53+
left: 12%;
4454
margin-left: calc(var(--uui-size-3) * -1);
4555
padding: 0px var(--uui-size-3);
4656
font-weight: 700;
@@ -49,10 +59,12 @@ export class UUISymbolFileElement extends LitElement {
4959
white-space: nowrap;
5060
overflow: hidden;
5161
text-overflow: ellipsis;
62+
border-radius: var(--uui-border-radius);
5263
}
5364
5465
#icon {
55-
fill: var(--uui-color-border-standalone);
66+
width: 100%;
67+
color: var(--uui-color-border-standalone);
5668
}
5769
`,
5870
];

packages/uui-symbol-folder/lib/uui-symbol-folder.element.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { LitElement, html, css } from 'lit';
22
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
3+
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
34

45
/**
56
* @element uui-folder-symbol
@@ -10,15 +11,20 @@ export class UUISymbolFolderElement extends LitElement {
1011
render() {
1112
return html`<svg
1213
xmlns="http://www.w3.org/2000/svg"
13-
viewBox="0 0 512 512"
14-
width="100%"
14+
viewBox="0 0 24 24"
15+
fill="none"
16+
stroke="currentColor"
17+
stroke-width="0.6"
18+
stroke-linecap="round"
19+
stroke-linejoin="round"
1520
id="icon">
1621
<path
17-
d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z" />
18-
</svg> `;
22+
d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />
23+
</svg>`;
1924
}
2025

2126
static styles = [
27+
UUITextStyles,
2228
css`
2329
:host {
2430
display: block;
@@ -28,7 +34,8 @@ export class UUISymbolFolderElement extends LitElement {
2834
}
2935
3036
#icon {
31-
fill: var(--uui-color-border);
37+
width: 100%;
38+
color: var(--uui-color-border-standalone);
3239
}
3340
`,
3441
];

0 commit comments

Comments
 (0)