question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Set as Default Style' is overridden by adhoc style changes

See original GitHub issue

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug After setting a default style for connectors, adhoc changes to any connector’s style will also change the default style.

To my knowledge this affects both lines and shapes, and all style properties.

To Reproduce Steps to reproduce the behavior:

  1. Create a diagram with two shapes
  2. Connect the shapes
  3. Change the connector’s style (eg. set colour to blue)
  4. Click Set as Default Style
  5. Add another connector to the shapes. The default style (blue) is used.
  6. Change the style of one of the connectors (eg. change colour to red)
  7. Add another connector to the shapes.
  8. See bug - The default style was not used (the new line is red when it should be blue)

Expected behavior When setting a default style for a line/shape I expect it to preserve that default style until I click Set as Default Style again to update the default.

Screenshots image

draw.io version (In the Help->About menu of the draw.io editor):

  • 14.9.2

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Firefox
  • Version: 91.0b8

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dsamplecommented, Mar 9, 2022

This is not a bug, it’s the intended behaviour.

Could you explain how it’s intended behaviour?

The ‘set as default style’ button’s behaviour is overridden by a simple selection of colour or line style. I can’t see how that’s intended.

0reactions
aldergcommented, Jun 12, 2022

This will be fixed in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Override CSS Styles - W3docs
You can set individual styles in your global CSS file as !important overrides inline styles set directly on elements. Example of overriding CSS...
Read more >
How to change default style of AdHoc based report
Answer: If you would like to change default style of one single report: You can apply your custom formatting to AdHoc View based...
Read more >
Overriding styles with the sx prop | Primer React
Use the sx prop for small stylistic changes to components. For more substantial changes, consider abstracting your style changes into your own ...
Read more >
Should CSS Override Default Browser Styles?
Every CSS ruleset you write will likely changes the defaults of something. But should CSS override browser defaults defaults?
Read more >
How to set specific control element settings that override a ...
Having to create a custom style for a one-off element is verbose and painful, when I should be able to just assign properties...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found