You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG-1.x.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
# 1.8.0 (2021)
2
2
3
3
-[f1c1176](https://github.com/patternfly/patternfly-elements/commit/f1c1176d9278d6e5b8066b42fc040ea01d98ecb2) feat: pfe-icon now supports setting default icon sets
4
-
-[](https://github.com/patternfly/patternfly-elements/commit/) feat: Update fetch mixin to support region input (#1328)
4
+
-[267ff8e](https://github.com/patternfly/patternfly-elements/commit/267ff8ee7df7cd0512f16c58fdb169f941bfa4cd) feat: Update fetch mixin to support region input (#1328)
5
5
-[56eb55e](https://github.com/patternfly/patternfly-elements/commit/56eb55ec8b4b62aee7d36950d158229cbf50ddef) fix: pfe-accordion IE11 regression; background context should always be white with black text
6
+
-[](https://github.com/patternfly/patternfly-elements/commit/) fix: [pfe-icon] Update icon color vs. background color custom property support
Copy file name to clipboardExpand all lines: elements/pfe-icon/README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ There are no slots, but if you wish to display some text when JS is disabled, yo
20
20
| Name | Values | Description |
21
21
| --- | --- | --- |
22
22
|`icon`|`iconSet-iconName`| For example, `rh-leaf` loads a leaf icon from an icon set named "rh". |
23
-
|`pfe-size`|`sm``md``lg``xl``1x``2x``3x``4x`| The default size is 1em, so icon size matches text size. `2x`, etc, are multiples of font size. `sm`, `md`, etc are fixed pixel-based sizes. |
24
-
|`pfe-color`|`base``lightest``lighter``darker``darkest``complement``accent``accent``critical``important``moderate``success``info``default`| The color variant to use. This draws from your theming layer to color the icon. This will set icon color or background color (if `pfe-circled` is true). |
25
-
|`pfe-circled`| boolean attribute | Whether to draw a circular background behind the icon. |
23
+
|`size`|`sm``md``lg``xl``1x``2x``3x``4x`| The default size is 1em, so icon size matches text size. `2x`, etc, are multiples of font size. `sm`, `md`, etc are fixed pixel-based sizes. |
24
+
|`color`|`base``lightest``lighter``darker``darkest``complement``accent``accent``critical``important``moderate``success``info``default`| The color variant to use. This draws from your theming layer to color the icon. This will set icon color or background color (if `circled` is true). |
25
+
|`circled`| boolean attribute | Whether to draw a circular background behind the icon. |
26
26
27
27
## Icon sets
28
28
@@ -86,10 +86,23 @@ To updating an existing icon set, you use the same `addIconSet` function. The f
86
86
87
87
## Variables
88
88
89
-
There are several powerful variables available to hook into and override default styles.
89
+
There are several powerful ways to hook into and override default styles.
90
90
91
-
- Color: the `color` attribute is available to pull icon color from your theming layer. For more fine-grained control, `--pfe-icon--color` is available to override the color of a specific icon or sets of icons and will be applied to either the SVG lines or the background of the circle (if circled). [Examples][color-examples]
92
-
- Background color: the `color` attribute is available to pull background color from your theming layer. For more fine-grained control, `--pfe-icon--BackgroundColor` is available to override the background color of a specific icon or sets of icons. Be sure to set `--pfe-icon--context` to the appropriate context if you are setting the background-color.
91
+
- Color: the `color` attribute is available to pull icon color from your theming layer. For more fine-grained control, `--pfe-icon--color` is available to override the color of a specific icon or sets of icons and will be applied to the SVG. [Examples][color-examples]
92
+
- Background color: the `color` attribute is available to pull background color from your theming layer. For more fine-grained control, `--pfe-icon--BackgroundColor` is available to override the background color of a specific icon or sets of icons. Be sure to set `--pfe-icon--context` to the appropriate context if you are setting the background-color or use the more fine-grained `--pfe-icon--color` to set a specific color on the SVG lines.
93
+
94
+
| Theme hook | Description | Default |
95
+
| -------------- | ----------- | ------- |
96
+
|`--pfe-icon--size`| The height and width of the icon | var(--pfe-theme--icon-size, 1em) |
@@ -107,7 +120,7 @@ From the PFElements root directory, run:
107
120
108
121
## Code style
109
122
110
-
Card (and all PFElements) use [Prettier][prettier] to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can [integrate your editor][prettier-ed] with Prettier to have the style rules applied on every save.
123
+
All PFElements use [Prettier][prettier] to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can [integrate your editor][prettier-ed] with Prettier to have the style rules applied on every save.
0 commit comments