Skip to content

Commit

Permalink
Closes #7540
Browse files Browse the repository at this point in the history
- Adds `overflow: hidden` to Condition Widget label and
alphanumeric wrappers.
  • Loading branch information
charlesh88 committed Mar 2, 2024
1 parent f43f6c0 commit eb4b9d5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/plugins/displayLayout/components/telemetry-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
flex-direction: row;
align-items: center;
overflow: hidden;
padding: $interiorMargin;
padding: 0 $interiorMargin;

> * {
// Text elements
Expand Down
5 changes: 1 addition & 4 deletions src/plugins/displayLayout/components/text-view.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.c-text-view {
display: flex;
align-items: center; // Vertically center text
overflow: hidden;
padding: $interiorMargin;
@include textViews();

.c-frame & {
@include abs();
Expand Down
15 changes: 8 additions & 7 deletions src/styles/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -592,21 +592,22 @@ select {

/******************************************************** HYPERLINKS AND HYPERLINK BUTTONS */
.c-hyperlink {
display: inline-block;
@include textViews();
color: $colorKey;

&--button {
@include cButton();
}
}

.c-so-view--hyperlink.c-so-view--no-frame {
.c-hyperlink--button {
.c-so-view--no-frame {
.c-hyperlink {
@include abs();
display: flex;
align-items: center;
justify-content: center;
padding: 0;

&--button {
padding: 0;
justify-content: center;
}
}

.c-so-view__frame-controls {
Expand Down
8 changes: 8 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,14 @@
unicode-bidi: bidi-override;
}

@mixin textViews() {
// DL text objects, hyperlinks
display: flex;
align-items: center;
overflow: hidden;
padding: 0 $interiorMargin;
}

/************************** CONTROLS, BUTTONS, INPUTS */
@mixin hover {
body.desktop & {
Expand Down

0 comments on commit eb4b9d5

Please sign in to comment.