Skip to content

Commit dad975f

Browse files
fix: set priority pfe-cta font-size as smaller, relative to default pfe-cta font-size (#801)
Co-authored-by: Kendall Totten <[email protected]>
1 parent 29780ab commit dad975f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

CHANGELOG-prerelease.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Tag: [v1.0.0-prerelease.42](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.42)
44

55
- [fbc251b](https://github.com/patternfly/patternfly-elements/commit/fbc251b5180684da26a57c0941235d57f961990e) fix: set consistent line-height for pfe-nav triggers (#773)
6-
- [](https://github.com/patternfly/patternfly-elements/commit/) feat: adding event to pfe-cta component
6+
- [29780ab](https://github.com/patternfly/patternfly-elements/commit/29780abfab1074aa05a021a43d79bee00afed31b) feat: adding event to pfe-cta component
7+
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: set pfe-cta's with the priority attribute relative to theme font-size
78

89
## Prerelease 41 ( 2020-03-19 )
910

elements/pfe-cta/src/pfe-cta.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ $variables: (
2222
TextDecoration--hover: none,
2323
TextDecoration--focus: none,
2424
FontWeight: #{pfe-var(font-weight--bold)},
25+
FontSize: #{pfe-var(font-size)},
26+
FontSize--priority: calc(#{pfe-local($cssvar: FontSize) / 1.125}),
2527
arrow: (
2628
Display: inline,
2729
Padding: 0 0.125rem 0 0.375rem,
@@ -120,6 +122,12 @@ $variables: (
120122

121123
:host([pfe-priority]) & {
122124
text-align: center;
125+
font-size: #{pfe-local($cssvar: FontSize--priority, $fallback: #{pfe-var(font-size)})};
126+
}
127+
128+
:host([aria-disabled="true"]) & {
129+
cursor: default !important;
130+
font-size: #{pfe-local($cssvar: FontSize--priority, $fallback: #{pfe-var(font-size)})};
123131
}
124132
}
125133

@@ -128,10 +136,6 @@ $variables: (
128136
cursor: pointer;
129137
}
130138

131-
:host([aria-disabled="true"]) ::slotted(*) {
132-
cursor: default !important;
133-
}
134-
135139
.pfe-cta {
136140
&--wrapper {
137141
display: block;

0 commit comments

Comments
 (0)