Skip to content

0.3.7

Compare
Choose a tag to compare
@jbaiter jbaiter released this 22 Apr 12:14
· 52 commits to main since this release

Improvement:
Selected text is now visible in WebKit-based browsers, even if general text display is disabled, just as in Firefox.

image

The default background color is opaque (contrary to Chrome's default style) to improve readability (together with the white text, contrast is WCGA AAA compliant at a 7:1 ratio).

The colors, as well as the general font family can be customized with a new textOverlay section in Mirador's theme (both dark and light):

Mirador.viewer({
  // ...
  themes: {
    light: {
      overlayFont: 'sans', // Any legal CSS `font-family` value
      selectionTextColor: 'rgba(255, 255, 255, 1)', // Any legal CSS color
      selectionBackgroundColor: 'rgba(0, 55, 255, 1)', // Any legal CSS color
    },
  },
  // ...
}