Skip to content

Commit

Permalink
add global class ellipsis-left for strings where the end is more rele…
Browse files Browse the repository at this point in the history
…vant to view than the beginning (#52)
  • Loading branch information
vaavva authored Oct 28, 2021
1 parent 9ea701b commit 414f430
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## v8.1.11
### Changed
- Added global class ellipsis-left to display tree structure-type items where the
text at the end of the string is more relevant than the text at the beginning

## v8.1.10
### Changed
- Added $size-75 sizing constant (6rem)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/azure-iot-ux-fluent-css",
"description": "Azure IoT common styles library for CSS, Colors and Themes",
"version": "8.1.10",
"version": "8.1.11",
"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
13 changes: 13 additions & 0 deletions src/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,19 @@
white-space: nowrap;
}

.ellipsis-left {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
direction: rtl;
text-align: left;

@include rtl {
direction: ltr;
text-align: right;
}
}

.hidden {
display: none !important;
}
Expand Down

0 comments on commit 414f430

Please sign in to comment.