GitHub - MerlinDotStudio/postcss-plugin-hover: An accessible hover replacement · GitHub
Skip to content

About

An accessible hover replacement

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

PostCSS Hover

PostCSS plugin that adds an alternative hover for accessibility and mobile usability.
It removes hover on touch devices and simultaniously adds :focus-visible for accessibility.

Example

.button {
  /* ...your css */

  &:active {
    transform: scale(0.95);
  }

  @hover {
    color: var(--button-background);
    border-color: var(--button-background);

    &::after {
      transform: scaleX(1);
    }
  }
}

About

An accessible hover replacement

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages