1.0.0-preview.1 • Published 5 years ago

@gfsdeliver/gfs-item v1.0.0-preview.1

Weekly downloads
6
License
Apache-2.0
Repository
github
Last release
5 years ago

Installation

Due to a bug on iron-overlay-backdrop, if you want to override the styles, you must add them in the root file (ex. index.html). This effect projects that start with polymer-starter-kit

Read more for the bug here: https://github.com/Polymer/polymer-starter-kit/issues/154

Properties

PropertyDescription
activedialog header, wrapped on a "h2" element tag
disableddialog content, wrapped on a "p" element tag

Example

<gfs-item on-click='console'>Item 1</gfs-item>
<gfs-item icon="view-list">Item 2</gfs-item>
<gfs-item selected>Item 3</gfs-item>
<gfs-item disabled>Item 4</gfs-item>

Styling

Custom propertyDescriptionDefault
--gfs-item-selected-colorColor of the a selected itemvar(--black-color)
--gfs-item-selected-backgroundBackground color of the a selected itemrgba(236, 236, 236, 0.7)
--gfs-item-selected-font-weightFont weight of a selected item500
--gfs-item-selectedMixin applied to the item{}