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

Styling links in 11.0.3-a1 #145

Open
erri120 opened this issue Apr 25, 2024 · 0 comments
Open

Styling links in 11.0.3-a1 #145

erri120 opened this issue Apr 25, 2024 · 0 comments

Comments

@erri120
Copy link

erri120 commented Apr 25, 2024

Upgrading from 11.0.2 to 11.0.3-a1 disabled our link styles:

<md:MarkdownScrollViewer.Styles>
    <Style Selector="ctxt|CHyperlink">
        <Setter Property="FontFamily" Value="{StaticResource FontBodyRegular}" />
        <Setter Property="Foreground" Value="{StaticResource NeutralModerateBrush}" />
    </Style>
</md:MarkdownScrollViewer.Styles>

The links now had their default blue color instead of our custom styling that worked in 11.0.2:

2024-04-25_12-32-16

Using the Avalonia Debugger, I noticed that the CHyperlink was only in the logical tree, not in the visual tree:

2024-04-25_12-31-57

2024-04-25_12-31-43

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

No branches or pull requests

1 participant