-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Proposal] Removed the default span styling from the template #28818
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
AFAIK the Label style doesn't go down to Spans, is that different for TextColor? |
|
/rebase |
d399ad6 to
cf98695
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |

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.