Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mermaid: Outline edge labels #702

Merged
merged 1 commit into from
Sep 4, 2024
Merged

mermaid: Outline edge labels #702

merged 1 commit into from
Sep 4, 2024

Conversation

72636c
Copy link
Member

@72636c 72636c commented Sep 4, 2024

The previous approach wasn't:

  • Particularly nice to look at
  • Correctly spanning the width of the label
  • Going to work well with dark mode
Mode Before After
Light Screen Shot 2024-09-04 at 10 26 47 Screen Shot 2024-09-04 at 10 26 54
Dark Screen Shot 2024-09-04 at 10 27 05 Screen Shot 2024-09-04 at 10 27 09

The previous approach wasn't:

- Particularly nice to look at
- Correctly spanning the width of the label
- Going to work well with dark mode
@72636c 72636c requested a review from a team as a code owner September 4, 2024 00:49
Copy link

changeset-bot bot commented Sep 4, 2024

🦋 Changeset detected

Latest commit: d1a5c2f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
scoobie Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +97 to +98
-webkit-text-stroke-color: #fff;
-webkit-text-stroke-width: 4px;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Browser support seems fine and note:

Firefox & Edge specifically only support the -webkit-text-stroke property (not using -moz- or -ms- prefix)

Unfortunately this doesn't seem to work on SVG text so there's some dodgy strokeing there instead.

Copy link
Contributor

@AaronMoat AaronMoat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@72636c 72636c merged commit 9816acd into master Sep 4, 2024
4 checks passed
@72636c 72636c deleted the ind-2707-edge-labels branch September 4, 2024 02:33
@seek-oss-ci seek-oss-ci mentioned this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants