Skip to content

Conversation

@castastrophe
Copy link
Contributor

@castastrophe castastrophe commented May 25, 2021

Testing instructions

  • Component design matches mock-ups pfe-accordion #877
  • Click toggles the accordion state
  • Space or enter toggles the accordion state

Browser requirements

Your component should work in all of the following environments:

  • Latest 2 versions of Edge
  • Internet Explorer 11 (should be useable, not pixel perfect)
  • Latest 2 versions of Firefox (one on Mac OS, one of Windows OS)
  • Firefox 78 (or latest version for Red Hat Enterprise Linux distribution)
  • Latest 2 versions of Chrome (one on Mac OS, one of Windows OS)
  • Latest 2 versions of Safari
  • Android mobile device (such as the Galaxy S9)
  • Apple mobile device (such as the iPhone X)
  • Apple tablet device (such as the iPhone Pro)

Ready-for-merge Checklist

  • Expected files: all files in this pull request are related to one request or issue (no stragglers or scope-creep).
  • Tests have been updated to cover these changes.
  • Browser testing passed.
  • Changelog updated.
  • Documentation (README.md, WHY.md, etc.) updated or added.
  • Link to the demo recording:
  • Approved by designer.

Merging

Please squash when merging and ensure your commit message uses conventional commit formatting.

Be sure to share your updates with the [email protected] mailing list!

@netlify
Copy link

netlify bot commented Jul 15, 2021

✔️ Deploy Preview for patternfly-elements ready!

🔨 Explore the source changes: fb55dd4

🔍 Inspect the deploy log: https://app.netlify.com/sites/patternfly-elements/deploys/60fb23879fee120008a792eb

😎 Browse the preview: https://deploy-preview-1642--patternfly-elements.netlify.app

this.sectionMargin = newVal;
}

_isValidMarkup() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was seeing this error on the pfe-accordion demo page but really it was just missed in the previous PR for jump links. This rule is no longer in place (content can exist at any level inside the DOM).

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this into a separate issue?

@github-actions github-actions bot added demo Updating demo pages docs Documentation updates work in progress POC / Not ready for review functionality Functionality, typically pertaining to the JavaScript. styles An issue or PR pertaining only to CSS/Sass tests Related to testing labels Jul 16, 2021
@castastrophe castastrophe removed the work in progress POC / Not ready for review label Jul 16, 2021
@kylebuch8
Copy link
Contributor

@castastrophe - This is a pretty big change and its a ton to take in at once. Can we make some smaller, more incremental changes? The design system changes would be the first priority. Then we can look at extending pfe-accordion with pfe-collapse.

@castastrophe
Copy link
Contributor Author

I hear you but at this point I'm focusing on getting code I have handed off or merged. I'm short on time and need this in order to move forward with nav 1.0 patches.

@kylebuch8
Copy link
Contributor

Ok but we're going to need some work on the animations. The closing animation is no longer working and the opening animation has some jank. I tried to see why the opening animation is no longer smooth but nothing jumped out to me.

@castastrophe
Copy link
Contributor Author

Ok but we're going to need some work on the animations. The closing animation is no longer working and the opening animation has some jank. I tried to see why the opening animation is no longer smooth but nothing jumped out to me.

This is a recording of Chrome, Firefox, and then Safari:

Screen.Recording.2021-07-21.at.9.17.37.AM.mov

It's not a perfect animation but it's on par with what we have now.

@castastrophe castastrophe marked this pull request as draft July 26, 2021 21:00
@coreyvickery
Copy link
Collaborator

@castastrophe @kylebuch8 A few comments.

Accordion

Themes

Typography

Screen Shot 2021-07-26 at 3 03 01 PM

  • Are we able to get the panel title/headline closer to what's in the kit?
  • Type is very close, font should be 20pt/30 line height and Medium weight (I believe that's 400)
  • Correct specs below

Screen Shot 2021-07-26 at 2 57 51 PM

Arrow

Kit

Accordion - Ext sections collapsed - Light theme - FTS

Demo

Screen Shot 2021-07-26 at 2 49 25 PM

  • Are we able to get the arrow size and thickness closer to what's in the kit?
  • Correct specs below

Screen Shot 2021-07-26 at 2 53 45 PM

Screen Shot 2021-07-26 at 2 54 00 PM

Hover state

Screen Shot 2021-07-26 at 11 41 54 AM

  • There appears to be vertical lines on the left and right on hover (correct example below), please delete
  • Maintain the blue accent line and gray background color on hover
  • Correct styles below

83435496-5e7b7980-a40a-11ea-9a43-f13b5ff59b4d

Mobile

Screen Shot 2021-07-26 at 3 06 19 PM

  • One-column only layouts on phone breakpoints, no two-column layouts

Disclosure

Screen Shot 2021-07-26 at 11 47 08 AM

  • Disclosure should have a border around the entire panel, not top and bottom only (looks correct on hover only)
  • Text should be left aligned near the arrow
  • Are we able to get the arrow size and thickness closer to what's in the kit?
  • Same arrow as Accordion, just aligned on left with 8px of spacing in between the text
  • Correct specs below

Screen Shot 2021-07-26 at 3 01 42 PM

@castastrophe
Copy link
Contributor Author

@coreyvickery I've isolated the design updates into a separate PR per @kylebuch8's request and implemented your feedback here: #1726

@castastrophe castastrophe changed the title fix: Accordion component design alignment with the kit fix: Update accordion to use PfeCollapse Jul 27, 2021
@github-actions github-actions bot added work in progress POC / Not ready for review AT passed Automated testing has passed and removed demo Updating demo pages labels Jul 29, 2021
get templateUrl() {
return "pfe-accordion-header.html";
get html() {
// return `<slot></slot>`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
// return `<slot></slot>`;

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

Labels

AT passed Automated testing has passed docs Documentation updates functionality Functionality, typically pertaining to the JavaScript. styles An issue or PR pertaining only to CSS/Sass tests Related to testing tools Development and build tools work in progress POC / Not ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pfe-disclosure pfe-accordion should extend pfe-collapse [feat] pfe-accordion | Cannot add custom code in accordion headers

4 participants