Skip to content

Commit

Permalink
Merge pull request #4859 from dodona-edu/fix/safari-wavy
Browse files Browse the repository at this point in the history
Fix wavy underline in safari
  • Loading branch information
jorg-vr authored Aug 2, 2023
2 parents 835be23 + 053a56c commit 89e8ba3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ export class AnnotationMarker extends LitElement {

static getStyle(annotation: AnnotationData): string {
if (["error", "warning", "info"].includes(annotation.type)) {
// shorthand notation does not work in safari
return `
text-decoration: wavy underline ${AnnotationMarker.colors[annotation.type]} 1px;
text-decoration-line: underline;
text-decoration-color: ${AnnotationMarker.colors[annotation.type]};
text-decoration-thickness: 1px;
text-decoration-style: wavy;
text-decoration-skip-ink: none;
`;
} else {
Expand Down

0 comments on commit 89e8ba3

Please sign in to comment.