Skip to content

Commit

Permalink
ensure that error level css has priority (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Dec 6, 2023
1 parent e2269a3 commit de9a64f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions pkgs/dart_pad/lib/scss/shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,19 @@ a {
}

// Code annotations
.squiggle-error {
border-bottom: 2px solid $dark-squiggle-error-color;

.squiggle-info {
border-bottom: 2px solid $dark-squiggle-info-color;
}

.squiggle-warning {
border-bottom: 2px solid $dark-squiggle-warning-color;
}

.squiggle-info {
border-bottom: 2px solid $dark-squiggle-info-color;
.squiggle-error {
border-bottom: 2px solid $dark-squiggle-error-color;
}


.clickable {
cursor: pointer;
}
Expand Down
8 changes: 4 additions & 4 deletions pkgs/dart_pad/web/styles/embed/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ body {

// Code annotations

.squiggle-error {
border-bottom: 2px solid $dark-squiggle-error-color;
.squiggle-info {
border-bottom: 2px solid $dark-squiggle-info-color;
}

.squiggle-warning {
border-bottom: 2px solid $dark-squiggle-warning-color;
}

.squiggle-info {
border-bottom: 2px solid $dark-squiggle-info-color;
.squiggle-error {
border-bottom: 2px solid $dark-squiggle-error-color;
}

// Styling specifically for CodeMirror editor
Expand Down
9 changes: 5 additions & 4 deletions pkgs/dart_pad/web/styles/embed/styles_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,17 @@ a {
}

// Code annotations
.squiggle-error {
border-bottom: 2px solid $dark-squiggle-error-color;

.squiggle-info {
border-bottom: 2px solid $dark-squiggle-info-color;
}

.squiggle-warning {
border-bottom: 2px solid $dark-squiggle-warning-color;
}

.squiggle-info {
border-bottom: 2px solid $dark-squiggle-info-color;
.squiggle-error {
border-bottom: 2px solid $dark-squiggle-error-color;
}

// Labels and scrollbars
Expand Down

0 comments on commit de9a64f

Please sign in to comment.