Skip to content

Commit ce41ba8

Browse files
committed
added button label and truncate file type
1 parent da75180 commit ce41ba8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ export class UUIInputFileElement extends FormControlMixin(LitElement) {
236236
private _renderFileItem(file: File, index: number) {
237237
return html`<uui-file-preview .file="${file}">
238238
<uui-action-bar slot="actions">
239-
<uui-button @click=${() => this._removeFile(index)} look="danger">
239+
<uui-button
240+
@click=${() => this._removeFile(index)}
241+
look="danger"
242+
label=${`Delete ${file.name}`}>
240243
<uui-icon name="delete" .fallback=${iconDelete.strings[0]}></uui-icon>
241244
</uui-button>
242245
</uui-action-bar>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UUISymbolFileElement extends LitElement {
2424
font-weight: 700;
2525
color: var(--uui-color-gunmetal);
2626
background-color: var(--uui-color-spanish-pink);
27+
max-width: 100%;
28+
white-space: nowrap;
29+
overflow: hidden;
30+
text-overflow: ellipsis;
2731
}
2832
2933
#icon {

0 commit comments

Comments
 (0)