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

Input control hints and underline lost when in ColorZone #3605

Open
cjmurph opened this issue Jun 19, 2024 · 0 comments
Open

Input control hints and underline lost when in ColorZone #3605

cjmurph opened this issue Jun 19, 2024 · 0 comments
Labels
bug evaluation required Items is pending review or evaluation by the team

Comments

@cjmurph
Copy link
Contributor

cjmurph commented Jun 19, 2024

Bug explanation

The hint, underline and cursor on TextBox and ComboBox go to primary brush when selected. The underline goes to primary on mouse over as well. If these controls are within a colorzone, with mode set to mid, these elements disappear on selection/hover.

This is true for various styles such as MaterialDesignFloatingHintTextBox/ComboBox and MaterialDesignOutlinedTextBox/ComboBox

I expect the control to choose a more appropriate highlight color (driven by the colorzone perhaps) or allow the selected highlight color to be overridden.

input_in_colorzone

        <materialDesign:ColorZone Mode="PrimaryMid" Grid.Row="1" Padding="8">
            <StackPanel>
                <TextBox Style="{DynamicResource MaterialDesignFloatingHintTextBox}" Text="Some Value" materialDesign:HintAssist.Hint="Some Hint"/>
                <ComboBox Style="{DynamicResource MaterialDesignFloatingHintComboBox}" SelectedIndex="0" materialDesign:HintAssist.Hint="Some Options">
                    <ComboBox.Items>
                        <ComboBoxItem Content="Stuff"/>
                        <ComboBoxItem Content="Things"/>
                    </ComboBox.Items>
                </ComboBox>
                <TextBox Style="{DynamicResource MaterialDesignOutlinedTextBox}" Text="Some Value" materialDesign:HintAssist.Hint="Some Hint"/>
                <ComboBox Style="{DynamicResource MaterialDesignOutlinedComboBox}" SelectedIndex="0" materialDesign:HintAssist.Hint="Some Options">
                    <ComboBox.Items>
                        <ComboBoxItem Content="Stuff"/>
                        <ComboBoxItem Content="Things"/>
                    </ComboBox.Items>
                </ComboBox>
            </StackPanel>
        </materialDesign:ColorZone>

Version

5.0

@cjmurph cjmurph added bug evaluation required Items is pending review or evaluation by the team labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation required Items is pending review or evaluation by the team
Projects
None yet
Development

No branches or pull requests

1 participant