src/components/Toggle.js
function updatePseudoClassStyle(styleId, properties, preventFocusStyleForTouchAndClick) {
  let focusStyle;
  if (preventFocusStyleForTouchAndClick) {
    focusStyle = { outline: 0 };
  } else {
    focusStyle = {
      ...style.focusStyle,
      ...properties.focusStyle,
    };
  }

  const styles = [
    {
      id: styleId,
      style: focusStyle,
      pseudoClass: 'focus',
    },
  ];

  injectStyles(styles);
}
function updatePseudoClassStyle(styleId, properties, preventFocusStyleForTouchAndClick) {
  let focusStyle;
  if (preventFocusStyleForTouchAndClick) {
    focusStyle = { outline: 0 };
  } else {
    focusStyle = {
      ...style.focusStyle,
      ...properties.focusStyle,
    };
  }

  const styles = [
    {
      id: styleId,
      style: focusStyle,
      pseudoClass: 'focus',
    },
  ];

  injectStyles(styles);
}
function updatePseudoClassStyle ( styleId , properties , preventFocusStyleForTouchAndClick ) { let focusStyle ; if ( preventFocusStyleForTouchAndClick ) { focusStyle = { outline : 0 } ; } else { focusStyle = { ... style . focusStyle , ... properties . focusStyle , } ; } const styles = [ { id : styleId , style : focusStyle , pseudoClass : 'focus' , } , ] ; injectStyles ( styles ) ; }
Update focus style for the speficied styleId.

@param styleId {string} - a unique id that exists as class attribute in the DOM
@param properties {object} - the components properties optionally containing custom styles
Update focus style for the speficied styleId .