Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
10f97c1
feat Add event to pfe-cta; working on tests
Feb 24, 2020
4873e59
feat Tests for enter key event, click event, and click function manua…
Feb 24, 2020
54d43df
feat Remove commented out code, add commenting spacing to demo page
Feb 24, 2020
28fa358
feat Update documentation with event
Feb 24, 2020
958e597
feat Update demo page JS to work in IE11
Feb 24, 2020
6d7dd82
feat Pull back unrelated change
Feb 24, 2020
79bdc31
Merge branch 'master' into feat-issue-741-add-event-cta
castastrophe Feb 26, 2020
f270493
feat Add type and color details to cta event
Feb 27, 2020
7a989b6
feat Add flex-grow to footer to fill space
Feb 27, 2020
c4c012a
feat Add console note
Feb 27, 2020
fe90b8d
feat Move span close after last text; tidy up styles
Feb 27, 2020
7f303d8
feat Fix comments on new event functions
Mar 3, 2020
5b032b5
feat Fix `this.firstChild` to `this.firstElementChild` to get the lin…
Mar 3, 2020
6d07267
feat href needs hanging / added for tests to pass
Mar 3, 2020
acc5856
Merge branch 'master' into feat-issue-741-add-event-cta
castastrophe Mar 6, 2020
31849a7
Merge branch 'master' into feat-issue-741-add-event-cta
castastrophe Mar 10, 2020
84cf79d
Merge branch 'master' into feat-issue-741-add-event-cta
kylebuch8 Mar 16, 2020
bd8483b
Merge branch 'master' into feat-issue-741-add-event-cta
kylebuch8 Mar 18, 2020
341310d
Adding event detail to demo page
kylebuch8 Mar 18, 2020
b325cdb
Merge branch 'master' of https://github.com/patternfly/patternfly-ele…
Mar 19, 2020
7b80b8f
feat Test adding resize properties and adjusting layout to use flex i…
Mar 19, 2020
8eb9340
feat Revert changes to demo page adding resize to all cards
Mar 19, 2020
69053fd
Merge branch 'master' into feat-issue-741-add-event-cta
castastrophe Mar 26, 2020
072b2ca
feat Revert pfe-chip from examples listing
Mar 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG-prerelease.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Tag: [v1.0.0-prerelease.42](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.42)

- [](https://github.com/patternfly/patternfly-elements/commit/) fix: set consistent line-height for pfe-nav triggers (#773)

- [fbc251b](https://github.com/patternfly/patternfly-elements/commit/fbc251b5180684da26a57c0941235d57f961990e) fix: set consistent line-height for pfe-nav triggers (#773)
- [](https://github.com/patternfly/patternfly-elements/commit/) feat: adding event to pfe-cta component

## Prerelease 41 ( 2020-03-19 )

Expand Down
6 changes: 6 additions & 0 deletions elements/pfe-cta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ If you'd like to checkout how theming is possible using our CSS Var hooks, try a
</style>
```

## Events

### pfe-cta:select

This event is fired when a link is clicked and serves as a way to capture click events if necessary.

## Test

npm run test
Expand Down
78 changes: 61 additions & 17 deletions elements/pfe-cta/demo/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ h2 {
margin: 15px 0 10px;
}

hr {
border-bottom: 1px solid #ddd;
width: 100%;
}

pfe-band {
--pfe-band--Padding--horizontal: 60px;
--pfe-band--Width: 100%;
Expand All @@ -17,42 +12,91 @@ pfe-band[pfe-color="lightest"] pfe-card[pfe-color="lightest"] {
--pfe-card--Border: 1px solid rgba(45, 45, 45, 0.3);
}

.default-link-test {
display: flex;
flex-flow: row nowrap;
border: 1px solid #ddd;
width: 305px;
padding: 10px;
}

.resize {
resize: horizontal;
overflow: auto;
border: 1px solid #ddd;
width: 700px;
padding: 10px;
}

.resize>pfe-cta:first-child {
.resize > pfe-cta:first-child {
margin-right: 20px;
}

.cta-layout,
.card-layout {
display: flex;
flex-flow: row wrap;
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(100px, max-content));
margin-top: -10px;
margin-left: -20px;
@supports (display: grid) {
display: grid;
grid-row-gap: 10px;
grid-column-gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
margin-top: 0;
margin-left: 0;
}
}

.cta-layout > *:not([class~="layout"]),
.card-layout .cta-align > * {
margin-top: 10px;
margin-left: 20px;
@supports (display: grid) {
margin-top: 0;
margin-left: 0;
}
}

.card-layout>pfe-cta,
.card-layout .cta-align>pfe-cta {
.card-layout > *:not([class~="layout"]) {
width: min-content;
min-width: 350px;
flex-grow: 1;
margin-top: 10px;
margin-left: 20px;
}

.cta-layout {
grid-template-columns: repeat(auto-fit, minmax(max-content, 1fr));
}

.event-registry {
flex-grow: 1;
display: flex;
align-items: center;
font-size: var(--pfe-theme--font-size--zeta, 14px);
}

.event-registry span {
display: inline-block;
padding: 5px 10px;
}

.event-registry pfe-icon {
--pfe-icon--Color: #444;
float: left;
}

.event-registry pfe-icon:not([on="light"]) {
--pfe-icon--Color: #fff;
float: left;
}

.custom-dark-band {
padding: 60px 15px;
padding: 15px;
background: #222;
--theme: dark;
}

.custom-saturated-band {
padding: 60px 15px;
padding: 15px;
background: #0c8488;
--theme: saturated;
}
}
Loading