UNPKG

itk-viewer-bootstrap-ui

Version:

[![npm version](https://badge.fury.io/js/itk-viewer-bootstrap-ui.svg)](https://badge.fury.io/js/itk-viewer-bootstrap-ui) ![react-bootstrap version](https://img.shields.io/badge/React%20Bootstap-%3E=1.6.1-brightgreen.svg) [![Documentation Status](https://r

25 lines (22 loc) 816 B
import applyContrastSensitiveStyleToElement from '../applyContrastSensitiveStyleToElement' function applyLayersContrastSensitiveStyle(context) { context.layers.uiLayers?.forEach((layerEntry) => { applyContrastSensitiveStyleToElement(context, 'layerEntry', layerEntry) const visibleButton = layerEntry.children[0] const visibleLabel = visibleButton.children[1] applyContrastSensitiveStyleToElement( context, 'invertibleButton', visibleLabel ) const layerLabel = layerEntry.children[1] applyContrastSensitiveStyleToElement(context, 'layerLabel', layerLabel) const iconElement = layerEntry.children[2] applyContrastSensitiveStyleToElement( context, 'invertibleButton', iconElement ) }) } export default applyLayersContrastSensitiveStyle