Skip to content

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 20:17
· 154 commits to main since this release
c5c70ab

Minor Changes

  • 07310da: <rh-code-block>: Added copy event. Modify the event.content field to change the text to be copied.

    import {RhCodeBlockCopyEvent} from '@rhds/elements/rh-code-block/rh-code-block.js';
    
    document.body.addEventListener('copy', function(event) {
      if (event instanceof RhCodeBlockCopyEvent) {
        // remove prompt and surrounding whitespace from the start of the string
        event.content = event.content.replace(/^\s*\$|#\s*/, '');
      }
    });
  • 07310da: <rh-tooltip>: add the silent attribute to hide tooltip content from screen readers.

    <rh-tooltip silent>
      <rh-button variant="secondary">
        <rh-icon set="ui" icon="copy" accessible-label="Copy to Clipboard"></rh-icon>
      </rh-button>
      <span slot="content">Copy to Clipboard</span>
    </rh-tooltip>

Patch Changes

  • 59dde97: <rh-progress-stepper>: improved online documentation