Skip to content

Commit

Permalink
UX: Make user tips more visible (discourse#22012)
Browse files Browse the repository at this point in the history
Inverts the background of the user tip to make it more visible.
  • Loading branch information
nbianca authored Jun 12, 2023
1 parent 7c768a2 commit 7746984
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/assets/stylesheets/common/base/d-popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ $d-popover-border: var(--primary-low);
top: -10px;
}

.tippy-rounded-arrow {
fill: $d-popover-background;
.svg-arrow {
fill: $d-popover-border;
}
.svg-content {
fill: $d-popover-background;
}
.tippy-svg-arrow > svg {
color: $d-popover-background;
}

[data-tooltip] > *,
Expand Down
27 changes: 27 additions & 0 deletions app/assets/stylesheets/common/base/user-tips.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
.tippy-box[data-theme="user-tips"] {
background-color: var(--tertiary);
color: var(--secondary);
border-color: var(--tertiary);

.btn-flat {
color: var(--secondary);

&:hover {
color: var(--d-hover);
}
}

.btn-primary {
background: var(--secondary);
color: var(--tertiary);

&:hover {
color: var(--tertiary-hover);
}
}

> .tippy-svg-arrow > svg {
color: var(--tertiary);
}
}

.user-tip {
z-index: z("composer", "content") - 1;
}
Expand Down

0 comments on commit 7746984

Please sign in to comment.