Skip to content

Commit 4e4eadb

Browse files
authored
Merge pull request #331 from rackerlabs/surf-1356
fix(hx-file-tiles): SURF-1356 and bug fix Issue-322
2 parents 8ee9ad6 + 5b2fbfa commit 4e4eadb

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

docs/components/files/test-file-selectors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h3>Tertiary with Label</h3>
7979
</section>
8080

8181
<section>
82-
<h3>Tertiary without Icon</h3>
82+
<h3>Tertiary with Icon-Only</h3>
8383
<hx-file-input
8484
class="hxTertiary"
8585
icon="paperclip">

docs/components/files/test-file-tiles.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,25 @@ <h3>Logically Truncated</h3>
9999
</div>
100100

101101
<div class="hxCol">
102-
<h3>Visually Truncated</h3>
102+
<h3>Visually Truncated no Spaces</h3>
103103
<hx-file-tile
104104
details="3Kb"
105105
href="files/easteregg.txt"
106106
icon="paperclip"
107107
name="visually-truncated-filename-really-really-really-really-really-long-final-02.pptx"
108108
></hx-file-tile>
109-
<small>many characters, center truncation applied</small>
109+
<small>many characters without spaces, center truncation applied</small>
110+
</div>
111+
112+
<div class="hxCol">
113+
<h3>Visually Truncated with Spaces</h3>
114+
<hx-file-tile
115+
details="3Kb"
116+
href="files/easteregg.txt"
117+
icon="paperclip"
118+
name="visually truncated filename with spaces that is really-really-really-really-really-long-final-02.pptx"
119+
></hx-file-tile>
120+
<small>many characters with spaces, center truncation applied</small>
110121
</div>
111122

112123
<div class="hxCol">

src/helix-ui/elements/HXFileTileElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class HXFileTileElement extends HXElement {
319319

320320
/** @private */
321321
_renderName () {
322-
let _name = escape(this.name);
322+
let _name = this.name;
323323
this._elName.innerHTML = `
324324
<span>${_name.slice(0, -PRE_TRUNC)}</span>
325325
<span>${_name.slice(-PRE_TRUNC)}</span>

0 commit comments

Comments
 (0)