FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(datatoolbar): add in examples for expandable by christiemolloy · Pull Request #2273 · patternfly/patternfly · GitHub

fix(datatoolbar): add in examples for expandable - #2273

Merged
mcoker merged 8 commits into
patternfly:masterfrom
christiemolloy:iss2237
Sep 25, 2019
Merged

fix(datatoolbar): add in examples for expandable#2273
mcoker merged 8 commits into
patternfly:masterfrom
christiemolloy:iss2237

Conversation

christiemolloy commented Sep 16, 2019
edited
Loading

Copy link
Copy Markdown
Member

closes #2237

Added two examples to distinguish the difference between the expandable content wrapper, and just added pf-m-expanded to components. @mattnolting @mcoker let me know what you think about just having one over the other, or if you think that we should have both.

Copy link
Copy Markdown
Collaborator

PatternFly-Next preview: https://patternfly-next-pr-2273.surge.sh

mcoker commented Sep 16, 2019

Copy link
Copy Markdown
Contributor

I like the expanded elements example, though I think we should check items in the menus to match the badge counts.

I think the expanded wrapper example is kind of confusing, since you would never see that and you have duplicate filters.

I wonder if we should add a 2nd example after "Data toolbar toggle group (responsive)" and label it "expanded" or "expanded on mobile" or something that shows the content expanded. And/or add "expanded on mobile" to the "Data toolbar selected filters" example, too.

@@ -0,0 +1,90 @@
Not Expanded Toolbar
<br>
{{#> data-toolbar data-toolbar--id="data-toolbar-not-expanded-example"}}

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

duplicate ID in this and the other example

{{/data-toolbar}}
<br>
<br>
Expanded Toolbar

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
Expanded Toolbar
Toolbar expanded

@@ -0,0 +1,119 @@
Not Expanded Toolbar

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
Not Expanded Toolbar
Toolbar not expanded

mcoker commented Sep 24, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

In the expanded elements example, in the responsive/expanded state, the status menu isn't expanded and nothing is selected. Also should the "Name" menu be expanded in both the content and expanded content?

The other 2 demos lgtm!

Copy link
Copy Markdown
Member Author

@mcoker re your comment above, I included the "name" in the expanded area because that was what was implemented in the expanded version of the "selected" example. @mattnolting can you confirm that this is the correct implementation?

Copy link
Copy Markdown
Member Author

Also @mcoker I only expanded the bottom select because it looks like an incorrect implementation if they're both expanded, what are your thoughts?

mcoker commented Sep 25, 2019

Copy link
Copy Markdown
Contributor

@christiemolloy gotcha, that makes sense. Only thing left is that nothing under "Risk" is selected in the responsive view. Seems like the same 3 items should be selected there as in the non-responsive view.

Copy link
Copy Markdown
Member Author

Updated @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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

excellent! ⭐️

mattnolting left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Being that the React toolbar component moves elements' DOM position, the examples will need to be restructured to match. This is consistent w/current Core integration, so LGTM. Just an axe error to address. :)

{{/select}}
{{/data-toolbar-item}}
{{#> data-toolbar-item data-toolbar-item--modifier="pf-m-shared-item"}}
{{#> select id=(concat data-toolbar--id '-select-checkbox-risk') select--IsCheckboxSelect="true" select--IsChecked="true" select--ItemIsSelected="true" select--IsExpanded="true"}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
{{#> select id=(concat data-toolbar--id '-select-checkbox-risk') select--IsCheckboxSelect="true" select--IsChecked="true" select--ItemIsSelected="true" select--IsExpanded="true"}}
{{#> select id=(concat data-toolbar--id '-select-checkbox-risk-expanded') select--IsCheckboxSelect="true" select--IsChecked="true" select--ItemIsSelected="true" select--IsExpanded="true"}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

id throws axe error

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

thank you! updated!

mcoker merged commit a4d3c64 into patternfly:master Sep 25, 2019

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.33.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

rachael-phillips added a commit that referenced this pull request Sep 27, 2019
# 2019.08 release notes (2019-10-01)
Packages released:
- @patternfly/patternfly@2.x

## Components
- **Charts:** 
  - Adjust padding for pie and donut charts ([#2247](#2247))
  - Set mix-blend-mode for better color contrast ([#2239](#2239))
  - Update area chart opacity ([#2233](#2233))
- **Copy to clipboard:** Wrapped code in pre which allows the code to preserve line-breaks and spaces and also applies styling such as the monospace font. ([#2260](#2260))
- **Data list:** Make data list borders consistent with table ([#2289](#2289))
- **Data toolbar:** 
  - Updated clear button mods ([#2248](#2248))
  - Added in examples for expandable ([#2273](#2273))
- **Flex layout:** Wrapped flex items, update css ([#2214](#2214))
- **Wizard:**
  - Re-enabled wizard modal demos ([#2259](#2259))
  - Updated in page wizard demos to use dark sidebar/nav ([#2296](#2296))
- **Navigation:** Added styling updates to dark nav ([#2283](#2283))
- **Page:** Added ability to keep sidebar collapsed between sizes ([#2264](#2264))
- **Pagination:** Added compact variation ([#2275](#2275))
- **Radio:** Updated the radio component example to single components ([#2231](#2231))
- **Table:**
  - Fixed a11y issues in org documentation/html/table ([#2282](#2282))
  - Added empty and loading state table demos ([#2254](#2254))
- **Tooltip:** Added text align left modifier ([#2284](#2284))
- **Select:**
  - Added typeahead form wrapper, udpated css ([#2255](#2255))
  - Add top expanded example ([#2026](#2026))
- **Chip group:** Add overflow to group ([#2278](#2278))
- **Button:** Add control modifier ([#2005](#2005))

## Other
- **Shield:** Added missing components, missing var to brand docs js ([#2263](#2263))
redallen pushed a commit that referenced this pull request Oct 1, 2019
* Create 2019.08 release notes (2019-10-01)

Adding new release notes

* Update 2019.08 release notes (2019-10-01)

# 2019.08 release notes (2019-10-01)
Packages released:
- @patternfly/patternfly@2.x

## Components
- **Charts:** 
  - Adjust padding for pie and donut charts ([#2247](#2247))
  - Set mix-blend-mode for better color contrast ([#2239](#2239))
  - Update area chart opacity ([#2233](#2233))
- **Copy to clipboard:** Wrapped code in pre which allows the code to preserve line-breaks and spaces and also applies styling such as the monospace font. ([#2260](#2260))
- **Data list:** Make data list borders consistent with table ([#2289](#2289))
- **Data toolbar:** 
  - Updated clear button mods ([#2248](#2248))
  - Added in examples for expandable ([#2273](#2273))
- **Flex layout:** Wrapped flex items, update css ([#2214](#2214))
- **Wizard:**
  - Re-enabled wizard modal demos ([#2259](#2259))
  - Updated in page wizard demos to use dark sidebar/nav ([#2296](#2296))
- **Navigation:** Added styling updates to dark nav ([#2283](#2283))
- **Page:** Added ability to keep sidebar collapsed between sizes ([#2264](#2264))
- **Pagination:** Added compact variation ([#2275](#2275))
- **Radio:** Updated the radio component example to single components ([#2231](#2231))
- **Table:**
  - Fixed a11y issues in org documentation/html/table ([#2282](#2282))
  - Added empty and loading state table demos ([#2254](#2254))
- **Tooltip:** Added text align left modifier ([#2284](#2284))
- **Select:**
  - Added typeahead form wrapper, udpated css ([#2255](#2255))
  - Add top expanded example ([#2026](#2026))
- **Chip group:** Add overflow to group ([#2278](#2278))
- **Button:** Add control modifier ([#2005](#2005))

## Other
- **Shield:** Added missing components, missing var to brand docs js ([#2263](#2263))

* Rename 2019.08 release notes (2019-10-01) to 2019.08 release notes (2019-10-01).MD

Added .md file name

* Update 2019.08 release notes (2019-10-01).MD

Co-Authored-By: Michael Coker <35148959+mcoker@users.noreply.github.com>

* alphabetize components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

5 participants


Back | FazBrowse Home | New Git URL