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

Icon highlight and SvgButton #10002

Merged
merged 7 commits into from
May 20, 2024
Merged

Icon highlight and SvgButton #10002

merged 7 commits into from
May 20, 2024

Conversation

farmaazon
Copy link
Contributor

Pull Request Description

Fixes #9904

Refactored our button: the common logic of "button being an SVG icon" moved to new SvgButton component. Simplified and unified CSS. Added hover highlight.

image

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • [ ] Unit tests have been written where possible.

@farmaazon farmaazon added CI: No changelog needed Do not require a changelog entry for this PR. -gui labels May 20, 2024
@farmaazon farmaazon self-assigned this May 20, 2024
<SvgButton
name="find"
alt="Zoom to selected"
:class="{ disabled: brushExtent == null }"
Copy link
Contributor

Choose a reason for hiding this comment

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

Disabled state should rather be a prop than just a class. That could then influence the actual disabled button attribute.

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label May 20, 2024
@mergify mergify bot merged commit 65f28c3 into develop May 20, 2024
36 checks passed
@mergify mergify bot deleted the wip/farmaazon/icon-highlight branch May 20, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-gui CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wheel menu items should highlight when hovered
2 participants