[Proposal] Removed the default span styling from the template#28818
Merged
PureWeen merged 1 commit intodotnet:inflight/currentfrom Aug 7, 2025
Merged
[Proposal] Removed the default span styling from the template#28818PureWeen merged 1 commit intodotnet:inflight/currentfrom
PureWeen merged 1 commit intodotnet:inflight/currentfrom
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (3)
- src/Controls/samples/Controls.Sample.Embedding/Resources/Styles/Styles.xaml: Language not supported
- src/Templates/src/templates/maui-mobile/Resources/Styles/Styles.xaml: Language not supported
- src/Templates/src/templates/maui-multiproject/MauiApp.1/Resources/Styles/Styles.xaml: Language not supported
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (3)
- src/Controls/samples/Controls.Sample.Embedding/Resources/Styles/Styles.xaml: Language not supported
- src/Templates/src/templates/maui-mobile/Resources/Styles/Styles.xaml: Language not supported
- src/Templates/src/templates/maui-multiproject/MauiApp.1/Resources/Styles/Styles.xaml: Language not supported
Contributor
|
AFAIK the Label style doesn't go down to Spans, is that different for TextColor? |
Contributor
Author
Member
|
/rebase |
d399ad6 to
cf98695
Compare
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
PureWeen
approved these changes
Aug 6, 2025
PureWeen
pushed a commit
that referenced
this pull request
Aug 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description of Change
Some developers prefer to use global styles for their Label controls and expect that properties like
TextColorwill cascade to Span. However, the defaultStyles.xamlfile in the MAUI template includes an explicit style targeting Span, which overrides inherited properties—specificallyTextColor.This default Span style unnecessarily duplicates the
TextColorof Label, causing confusion when global styles don't behave as expected. Removing the Span style resolves the issue by allowing properties such as TextColor to be inherited from the parent Label, as intended.This change simplifies styling and ensures a more consistent and predictable behavior for developers customizing label appearance via global styles.