Skip to content

feat(notificationdrawer): add recommendation option - #3338

Merged
mcoker merged 3 commits into
patternfly:masterfrom
christiemolloy:iss-3312
Jul 29, 2020
Merged

mcoker merged 3 commits into
patternfly:masterfrom
christiemolloy:iss-3312

Conversation

@christiemolloy

Copy link
Copy Markdown
Member

closes #3312

| `.pf-m-warning` | `.pf-c-notification-drawer__list-item` | Modifies a notification list item for the warning state. |
| `.pf-m-danger` | `.pf-c-notification-drawer__list-item` | Modifies a notification list item for the danger state. |
| `.pf-m-success` | `.pf-c-notification-drawer__list-item` | Modifies a notification list item for the success state. |
| `.pf-m-recommendation` | `.pf-c-notification-drawer__list-item` | Modifies a notification list item for the recommendation state. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to verify this should be called pf-m-recommendation over pf-m-default?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@megan-hall @mceledonia @mcarrano what are your thoughts here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this @mcoker . Even though 'recommendation' conforms to the OpenShift use case, we don't use that term elsewhere in PatternFly. We defined the teal alert state as 'default' that can be used for anything that the consumer wants. Can we call it 'pf-m-default'?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

{{/notification-drawer-list-item-header-title}}
{{/notification-drawer-list-item-header}}
{{#> notification-drawer-list-item-action}}
{{#> dropdown id=(concat notification-drawer--id "-action2") dropdown-menu--modifier="pf-m-align-right" dropdown--IsActionMenu="true" dropdown-toggle--modifier="pf-m-plain" dropdown--HasKebabIcon="true" aria-label="Actions"}}{{/dropdown}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate ID notification-drawer--id "-action2"

@patternfly-build

patternfly-build commented Jul 28, 2020 •

Copy link
Copy Markdown
Collaborator

Preview: https://patternfly-pr-3338.surge.sh

A11y report: https://patternfly-pr-3338-coverage.surge.sh

CSS Size Report
NameCurrentPreviousDiff %
components/NotificationDrawer/notification-drawer.css16.0 kB15.4 kB3.81
patternfly.min.css656.1 kB655.5 kB0.09
patternfly-no-reset.css742.8 kB742.2 kB0.08
patternfly.css744.7 kB744.1 kB0.08

@mcoker

mcoker commented Jul 28, 2020

Copy link
Copy Markdown
Contributor

Looks good! Just a couple of things.

@christiemolloy

Copy link
Copy Markdown
Member Author

Updated @mcoker @mcarrano

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants