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

Code Quality: ThemedIcon, Changed IsToggle to ToggleBehavior #15948

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mdtauk
Copy link
Contributor

@mdtauk mdtauk commented Aug 5, 2024

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

  • Closes #

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Opened Files ...
  2. ...

@mdtauk mdtauk marked this pull request as draft August 5, 2024 19:22
@mdtauk mdtauk marked this pull request as ready for review August 15, 2024 04:00
@mdtauk
Copy link
Contributor Author

mdtauk commented Aug 15, 2024

I have marked this as ready for review, I have updated the examples page now the Hierarchal paging has been merged into main.

@0x5bfa 0x5bfa force-pushed the mdta-ThemedIcon-ToggleFix branch 2 times, most recently from 1cac8c6 to 188216f Compare August 15, 2024 06:53
@0x5bfa
Copy link
Member

0x5bfa commented Aug 15, 2024

@marcelwgn @yaira2

Details of changes:

  • Formatted C# with tabs
  • Moved Enum classes to Data folder
  • Moved owner hooking up routines to another file
  • Replaced IsToggled with ToggleBehavior
    • Auto: Respects both owner's toggle state (IsChecked) and ThemedIcon's state
    • On: Toggle anyways
    • Off: Respect only the ThemedIcon's state (e.g. explicit IsEnabled setting) (would be useful in Toolbar PR, and is the reason to have made this PR)

Resolved requests from @marcelwgn
@yaira2
Copy link
Member

yaira2 commented Sep 15, 2024

Can you resolve the merge conflicts?

@yaira2
Copy link
Member

yaira2 commented Sep 16, 2024

It seems to be an accessibility issue, do the tests successfully run locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants