KEMBAR78
Update template styles by rachelkang · Pull Request #6312 · dotnet/maui · GitHub
Skip to content

Conversation

@rachelkang
Copy link
Member

Description of Change

Temporarily

  • remove VSM normal state styles (until VSM / AppThemeBinding behavior is fixed)
  • use Background and Brushes for Page / NavPage (at least until AppThemeBinding behavior with BackgroundColor is fixed)

@rachelkang rachelkang requested a review from PureWeen April 20, 2022 13:46
@PureWeen PureWeen enabled auto-merge (squash) April 20, 2022 14:25
@rachelkang rachelkang added area-xaml XAML, CSS, Triggers, Behaviors legacy-area-a11y Relates to accessibility area-templates Project templates, Item Templates for Blazor and MAUI labels Apr 20, 2022
@rachelkang rachelkang added this to the 6.0.300-rc.3 milestone Apr 20, 2022
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we include some kind of TODO: comment to avoid forgetting to add this again after fixing AppThemeBinding?

Copy link
Member

Choose a reason for hiding this comment

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

Leaving this blank is the correct behavior. This way when you travel back to normal in unsets back to the values set on the control itself. If you have setters inside Normal then it causes code like this

<Button TextColor=Green />

To no longer work, because the VSM will just use the VSM setters over the property set on the control itself.

@PureWeen PureWeen merged commit 86111c9 into main Apr 21, 2022
@PureWeen PureWeen deleted the template-styles-updates branch April 21, 2022 12:06
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@Eilon Eilon added t/a11y Relates to accessibility and removed legacy-area-a11y Relates to accessibility labels May 10, 2024
@samhouts samhouts added the fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-templates Project templates, Item Templates for Blazor and MAUI area-xaml XAML, CSS, Triggers, Behaviors fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! t/a11y Relates to accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants