diff --git a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss index 9f161779f..1d64d9e8c 100644 --- a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss +++ b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss @@ -9,9 +9,7 @@ .ion-text-wrap ion-label { .item-heading, h2, p { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } } } diff --git a/src/addons/block/timeline/components/events/events.scss b/src/addons/block/timeline/components/events/events.scss index 709f503bd..16fdec4a5 100644 --- a/src/addons/block/timeline/components/events/events.scss +++ b/src/addons/block/timeline/components/events/events.scss @@ -52,8 +52,7 @@ h4.core-bold { flex-wrap: wrap; & > span { - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } } diff --git a/src/addons/messages/messages-common.scss b/src/addons/messages/messages-common.scss index da75d7348..20a561db1 100644 --- a/src/addons/messages/messages-common.scss +++ b/src/addons/messages/messages-common.scss @@ -46,9 +46,7 @@ } .addon-message-last-message-text { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + @include ellipsis(); flex-shrink: 1; } } diff --git a/src/addons/messages/pages/discussion/discussion.scss b/src/addons/messages/pages/discussion/discussion.scss index 8a1e2dd70..b0936e504 100644 --- a/src/addons/messages/pages/discussion/discussion.scss +++ b/src/addons/messages/pages/discussion/discussion.scss @@ -51,9 +51,7 @@ } core-format-text { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + @include ellipsis(); flex-shrink: 1; display: block; } diff --git a/src/addons/mod/h5pactivity/pages/user-attempts/user-attempts.scss b/src/addons/mod/h5pactivity/pages/user-attempts/user-attempts.scss index eee2a95b4..0160b497f 100644 --- a/src/addons/mod/h5pactivity/pages/user-attempts/user-attempts.scss +++ b/src/addons/mod/h5pactivity/pages/user-attempts/user-attempts.scss @@ -1,10 +1,11 @@ +@use "theme/globals" as *; + :host { .addon-mod_h5pactivity-table-header { font-weight: bold; ion-col { - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } } diff --git a/src/addons/mod/h5pactivity/pages/users-attempts/users-attempts.scss b/src/addons/mod/h5pactivity/pages/users-attempts/users-attempts.scss index 4f70d0bdd..68eda35cb 100644 --- a/src/addons/mod/h5pactivity/pages/users-attempts/users-attempts.scss +++ b/src/addons/mod/h5pactivity/pages/users-attempts/users-attempts.scss @@ -1,6 +1,7 @@ +@use "theme/globals" as *; + :host { .addon-mod_h5pactivity-table-header ion-col { - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } } diff --git a/src/addons/notifications/pages/list/list.scss b/src/addons/notifications/pages/list/list.scss index 979f8c2d8..645c86029 100644 --- a/src/addons/notifications/pages/list/list.scss +++ b/src/addons/notifications/pages/list/list.scss @@ -7,11 +7,7 @@ ion-item.addon-notification-item { margin-bottom: 8px; p.item-heading { font-size: var(--text-size); - -webkit-line-clamp: 3; - overflow: hidden; - text-overflow: ellipsis; - -webkit-box-orient: vertical; - display: -webkit-box; + @include ellipsis(3); } p { font-size: 12px; diff --git a/src/core/components/combobox/combobox.scss b/src/core/components/combobox/combobox.scss index 320805a35..a42acf707 100644 --- a/src/core/components/combobox/combobox.scss +++ b/src/core/components/combobox/combobox.scss @@ -63,11 +63,11 @@ --padding-bottom: 8px; background: var(--background); + + --color: var(--core-combobox-color); color: var(--color); - text-overflow: ellipsis; - white-space: nowrap; + min-height: var(--a11y-sizing-minTargetSize); - overflow: hidden; box-shadow: var(--box-shadow); --highlight-color: transparent !important; @@ -121,7 +121,6 @@ } ion-button { - --color: var(--core-combobox-color); --color-activated: var(--core-combobox-color); --color-focused: currentcolor; --color-hover: currentcolor; @@ -130,9 +129,7 @@ .select-text { @include margin-horizontal(null, auto); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); font: var(--mdl-typography-label-font-lg); } diff --git a/src/core/components/message/message.scss b/src/core/components/message/message.scss index f8395258c..ce49669aa 100644 --- a/src/core/components/message/message.scss +++ b/src/core/components/message/message.scss @@ -67,9 +67,7 @@ flex-grow: 1; padding-left: .5rem; padding-right: .5rem; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + @include ellipsis(); font-size: 16px; } } diff --git a/src/core/components/tabs/tabs.scss b/src/core/components/tabs/tabs.scss index 876bc93be..ca2cae2b5 100644 --- a/src/core/components/tabs/tabs.scss +++ b/src/core/components/tabs/tabs.scss @@ -61,9 +61,7 @@ max-width: 100%; ion-label { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; + @include ellipsis(); word-wrap: break-word; max-width: 100%; line-height: 1.2em; diff --git a/src/core/features/course/components/course-format/course-format.html b/src/core/features/course/components/course-format/course-format.html index 423cf7031..1f49076f2 100644 --- a/src/core/features/course/components/course-format/course-format.html +++ b/src/core/features/course/components/course-format/course-format.html @@ -31,12 +31,12 @@