Skip to content

Highlight selected list item when clicking on links #161

@lgfa29

Description

@lgfa29

Most RFDs use a reference to an item in the "External References" list in links. This requires users to remember the item they clicked, and sometimes the link text itself may differ from the item list.

It would be helpful to highlight the item that was clicked so that users can quickly find the address they intend to navigate to. This could, in theory, be done with just a little CSS:

.bibliography li:has(:target) {
  background-color: rgb(from var(--theme-accent-700) r g b / 40%);
}

But due to remix-run/remix#6432, some JavaScript may be required to achieve a similar effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions