Skip to content

Commit

Permalink
fix(styles): IcpExchangeRate specificity conflict (#6182)
Browse files Browse the repository at this point in the history
# Motivation

The `display: none` rule wasn't working because, when nested inside
`.exchange-rate`, Svelte's CSS scoping created a more specific selector.
This interfered with the media query's ability to toggle the visibility
of utility classes effectively.

# Changes

- Fix the style by moving it out from the parents scope

# Tests

- Not necessary

# Todos

- [ ] Add entry to changelog (if necessary).
Not necessary
  • Loading branch information
yhabib authored Jan 17, 2025
1 parent 47e5638 commit c392643
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/lib/components/ui/IcpExchangeRate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@
&.has-error {
--tooltip-icon-color: var(--tag-failed-text);
}
}
.desktop-only {
display: none;
}
@include media.min-width(medium) {
.desktop-only {
display: none;
display: flex;
}
@include media.min-width(medium) {
.desktop-only {
display: flex;
}
.mobile-only {
display: none;
}
.mobile-only {
display: none;
}
}
</style>

0 comments on commit c392643

Please sign in to comment.