Skip to content

Link colouring for <a> tags with subelements #21

Closed
@trevorcampbell

Description

@trevorcampbell

If you check out https://github.com/joelostblom/viz-oer/tree/407c3267ae5f2a854d029626a2b19fc8d869e4f2 , you'll see that links to changed pages are not coloured properly.

I think it might be because the <a> tag has a sub <span> tag that overwrites style for the text inside. One possible solution: when colouring links, traverse to the lowest content element and wrap it in a <span> or <div> or something that adds a particular class. Even better would be to prevent subelements from overriding the <a>'s style (to avoid adding extra elements), but I'm not sure that's possible...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions