Socket
Socket
Sign inDemoInstall

@spectrum-web-components/iconset

Package Overview
Dependencies
7
Maintainers
6
Versions
180
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @spectrum-web-components/iconset

Extend either the `Iconset` or `IconsetSVG` exports of this package to supply your application with a custom icon set to power the use of `<sp-icon>` elements throughout. Give your new icon set a custom name, and you'll be ready to supply them as `<sp-ico


Version published
Weekly downloads
7.9K
increased by16.25%
Maintainers
6
Install size
2.99 MB
Created
Weekly downloads
 

Changelog

Source

0.34.0 (2023-07-11)

Bug Fixes

  • action-button,action-menu,picker,split-button: expand and update application of aria-* attributes (52c0156)
  • action-group: ensure Action Button clicks are attributed to the right element (#3292) (ddccab7)
  • added role for href button (5a4ad98)
  • color-area,color-slider: color-area labeling, RTL support, vertical slider orientation(#3315) (ca2acda), closes #3313
  • color-loupe: hide svg from screen readers (#3318) (01e75b7)
  • color-slider,color-wheel: fix focused state #3278 (96b83f7)
  • color-slider: announce new value on change after keydown (#3304) (d70d0ae), closes #3303
  • number-field,search,textfield: add t-shirt sizes (fda8f96)
  • picker: correct label application for screen readers (8ce0cb0)
  • radio: fix radio documentation usage of sp-field-label[for] and sp-radio-group[id] (60f54fb)
  • sidenav: express hierarchy using list and listitem (f9019d7), closes #3348 #3348
  • slider: #3340 fix visual regression (88e0bda)
  • slider: slider input aria-valuetext omits formatOptions for unit #3340 (d5ff7e6)
  • swatch: mixed-value state must be conveyed to screen readers using ARIA (#3330) (7711264)
  • table: include all dependencies, @lit-labs/observers was missing (98d0370)
  • text fixes (0121fd6)
  • textfield: add rows attribute (#3356) (1ee1c37)
  • vrt-compare: updating the readme about vrt tests (#3380) (8eb28c8)

Features

Readme

Source

Description

Extend either the Iconset or IconsetSVG exports of this package to supply your application with a custom icon set to power the use of <sp-icon> elements throughout. Give your new icon set a custom name, and you'll be ready to supply them as <sp-icon name="custom-icons:icon"> across your application.

Usage

See it on NPM! How big is this package in your project?

yarn add @spectrum-web-components/iconset
import { TemplateResult } from 'lit-element';
import { IconsetSVG } from '@spectrum-web-components/iconset/src/iconset-svg.js';

import { CustomIconSet } from 'your-icon-set.js';

export class IconsLarge extends IconsetSVG {
    public constructor() {
        super();
        this.name = 'custom-icons'; // default iconset name for these icons
    }

    protected renderDefaultContent(): TemplateResult {
        return CustomIconSet;
    }
}

Deprecated

Iconsets have been deprecated and will be removed from the project in an upcoming version. Using a technique that ensures only the icons actually leveraged in your application are present in your build, like UI Icons (../icons-ui/) or Workflow Icons (../icons-workflow/), will ensure smaller bundles and higher performance for you visitor. For non-Spectrum icons, you can still slot SVG and image content into an sp-icon element or sanitize the SVG to a template literal so that it can be returned from the render() method in an extension of IconBase to create your own named icon element.

Keywords

FAQs

Last updated on 11 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc