'Set as Default Style' is overridden by adhoc style changes
See original GitHub issuePreflight 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:
- Create a diagram with two shapes
- Connect the shapes
- Change the connector’s style (eg. set colour to blue)
- Click
Set as Default Style
- Add another connector to the shapes. The default style (blue) is used.
- Change the style of one of the connectors (eg. change colour to red)
- Add another connector to the shapes.
- 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
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:
- Created 2 years ago
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
This will be fixed in the next release.