ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
65 stars 22 forks source link

Move zoom pane styles to styled component to ensure no issues when in… #311

Closed matthiaslehnertum closed 10 months ago

matthiaslehnertum commented 10 months ago

This PR moves styles from the CSS file to a styled component as otherwise the version of Apollon integrated with Apollon Standalone will not apply styles to the zoom buttons as expected.

Checklist

Motivation and Context

The zoom buttons on the Apollon Canvas were not rendered properly in Apollon Standalone.

Description

The styles used for the zoom buttons of the canvas are inlined using 'styled' components. The snapshot test regarding the canvas component are updated accordingly.

Steps for Testing

As this change only changes how styles are applied, the easiest approach to test this PR would be by running Apollon and ensuring that the zoom buttons including their hover states look as expected.

Screenshots

Screenshot 2023-10-12 at 14 05 08