umd-styles-library
    Preparing search index...

    Function processNestedSelector

    • Processes nested selectors and returns corresponding CSS.

      Parameters

      • baseSelector: string

        The base CSS selector

      • nestedSelector: string

        The nested selector

      • properties: Record<string, any>

        Object of CSS properties

      Returns string

      CSS as a string

      import * as Styles from '@universityofmaryland/web-styles-library';
      Styles.utilities.transform.css.processNestedSelector(
      '.card',
      '&:hover',
      { backgroundColor: '#f5f5f5' }
      );

      1.3.0