Skip to content

Install command cursor highlight is the same color as the background (top of egghead.computer) #7

Description

@pkrisko

Issue

On the homepage, egghead.computer, when the text for the curl install command is selected, it does not appear like you can select the text because the background color when selecting the text is the same as the <code> element.

Src: https://github.com/mwunsch/egghead/blob/main/site/layouts/index.html#L25

Suggested Fix

Change the appearance for the ::selection state, i.e.

code::selection {
  background: #ffffff;
  color: #000000;
}

or similar.

Suggested Enhancement

Add a "copy" icon which copies the install command to the clipboard.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions