Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(accordion): add rh-accordion #594

Merged
merged 74 commits into from Jan 16, 2023

Conversation

brianferry
Copy link
Collaborator

@brianferry brianferry commented Oct 19, 2022

What I did

  1. Created a new rh-accordion element which extends off of BaseAccordion in the patternfly repo.
  2. Also included with this are two child components rh-accordion-panel and rh-accordion-header which functions as the content wrapper and toggle respectively.
  3. Updated references to pfe-accordion in the repo to rh-accordion.
  4. Updated ImportMap to include latest version of pfe-accordion@2.0.0-next.7.
  5. Closes [feat]: <rh-accordion> ready to migrate #303

Testing Instructions

  1. Go to https://deploy-preview-594--red-hat-design-system.netlify.app/components/accordion/demo/
  2. Need to test the accessibility and functionality of the accordion components with the variants default, large, dark mode
  3. go to https://deploy-preview-594--red-hat-design-system.netlify.app/components/accordion/demo/color-context/
  4. test color context support

Notes to Reviewers

  1. The demos should match the design specs here

@changeset-bot
Copy link

changeset-bot bot commented Oct 19, 2022

🦋 Changeset detected

Latest commit: c361c44

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rhds/elements Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Oct 19, 2022

Deploy Preview for red-hat-design-system ready!

Name Link
🔨 Latest commit c361c44
🔍 Latest deploy log https://app.netlify.com/sites/red-hat-design-system/deploys/63c55fc43227420009d9d11c
😎 Deploy Preview https://deploy-preview-594--red-hat-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@bennypowers bennypowers changed the title [WIP] Feat/rh-accordion feat(accordion): add rh-accordion Oct 19, 2022
Copy link
Member

@bennypowers bennypowers left a comment

Choose a reason for hiding this comment

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

CSS changes look really nice

@bennypowers
Copy link
Member

see also patternfly/patternfly-elements#2308

@bennypowers bennypowers mentioned this pull request Jan 16, 2023
7 tasks
@bennypowers bennypowers enabled auto-merge (squash) January 16, 2023 07:51
@bennypowers
Copy link
Member

bennypowers commented Jan 16, 2023

This is waiting on @marionnegp 's review. PTAL

@bennypowers bennypowers merged commit f58c607 into main Jan 16, 2023
7 checks passed
@bennypowers bennypowers deleted the feat/rh-accordion-from-pfe-accordion branch January 16, 2023 14:33
nikkimk pushed a commit that referenced this pull request Jan 23, 2023
* feat: initial commit, adding rh-accordion, rh-accordion-panel, rh-accordion-header

* fix: updating accordion styles

* fix: adding in the styles from the ux docs, adding in large style and slotted font sizes

* fix: adding dark theme support

* fix: updating the styles to match the updated pfe-accordion styles, fixing stylelint issues

* fix: adding disclosure to the accordion as an optionwhen only one panel is present

* fix: removing disclosure specific code

* fix: updating importmap for demo, updating instances of pfe-accordion to rh-accordion

* fix: making border color dynamic between dark and light themes

* fix: fixing styling on not-first-child rh-accordion-header and top for after element

* chore: updating stylesheet to move vars into rh-accordion* files

* chore: updating accordion version

* fix: styling changes to the accordion, cleaning up variables

* fix: updating the icon in the rh-accordion header to the new format

* fix: angle down instead of arrow down

* chore: adding changeset and removing max-width property

* fix: package.json / package-lock and adding readme details and rh-footer fix

* fix: renaming e2e spec file

* fix: fixing import map to point to latest version, updating accordion njk to not have a demo for now

* chore: Updating the demo page to not include disclosure and secondary dark theme demo

* fix: adding cascade for large accordion, fixing header text wrapper and fixing shadow on top of panel

* fix: updating package-lock sinon

* fix: updating dark theme accent color to ff442b, adding token

* style: updating rh-accordion var to match conventions and stylelint rules

* docs(accordion): updating rh-accordion elements with descriptions of slots and purpose

* fix(accordion): removing pfe-band, replacing with rh-context-provider and updating imports in rh-accordion

* docs: update changeset

* docs: uncomment example element

* docs: update readme

* docs(footer): update readme

* fix(accordion): update upstream pfe-accordion

* docs: update demos

* fix: refactor accordion css

* chore: update deps

* docs: remove references to pfe-accordion

* fix(demo): remove references to pfe-accordion

* fix(footer): remove references to pfe-accordion

* docs(secondary-nav): remove references to pfe-accordion

* fix(accordion): remove pfe icon

* fix(accordion): privatize `on`

* fix(accordion): adding color context property, icon fill color, css panel spacing

* fix(accordion): removing relect attr for consumer for panel, header

* fix(accordion): dark theme border color, arrow direction, rotation, border right length on header

* chore: skipping failing tag tests from merge

* fix: removing skip from test, updating package-lock.json

* fix(accordion): making border-right, padding css var into logical properties

* fix(accordion): making on property private

* docs(accordion): split off context demo

* fix(accordion): context

* fix(context)!: remove `attribute` from context consumer

* fix(context): get attribute name from decorated property

* docs(accordion): rtl

* fix: make `on` private

Co-authored-by: brian <brian@LAPTOP-TFG37H82.attlocal.net>
Co-authored-by: Benny Powers <web@bennypowers.com>
Co-authored-by: Benny Powers <bennypowers@users.noreply.github.com>
nikkimk pushed a commit that referenced this pull request Jan 24, 2023
* feat: initial commit, adding rh-accordion, rh-accordion-panel, rh-accordion-header

* fix: updating accordion styles

* fix: adding in the styles from the ux docs, adding in large style and slotted font sizes

* fix: adding dark theme support

* fix: updating the styles to match the updated pfe-accordion styles, fixing stylelint issues

* fix: adding disclosure to the accordion as an optionwhen only one panel is present

* fix: removing disclosure specific code

* fix: updating importmap for demo, updating instances of pfe-accordion to rh-accordion

* fix: making border color dynamic between dark and light themes

* fix: fixing styling on not-first-child rh-accordion-header and top for after element

* chore: updating stylesheet to move vars into rh-accordion* files

* chore: updating accordion version

* fix: styling changes to the accordion, cleaning up variables

* fix: updating the icon in the rh-accordion header to the new format

* fix: angle down instead of arrow down

* chore: adding changeset and removing max-width property

* fix: package.json / package-lock and adding readme details and rh-footer fix

* fix: renaming e2e spec file

* fix: fixing import map to point to latest version, updating accordion njk to not have a demo for now

* chore: Updating the demo page to not include disclosure and secondary dark theme demo

* fix: adding cascade for large accordion, fixing header text wrapper and fixing shadow on top of panel

* fix: updating package-lock sinon

* fix: updating dark theme accent color to ff442b, adding token

* style: updating rh-accordion var to match conventions and stylelint rules

* docs(accordion): updating rh-accordion elements with descriptions of slots and purpose

* fix(accordion): removing pfe-band, replacing with rh-context-provider and updating imports in rh-accordion

* docs: update changeset

* docs: uncomment example element

* docs: update readme

* docs(footer): update readme

* fix(accordion): update upstream pfe-accordion

* docs: update demos

* fix: refactor accordion css

* chore: update deps

* docs: remove references to pfe-accordion

* fix(demo): remove references to pfe-accordion

* fix(footer): remove references to pfe-accordion

* docs(secondary-nav): remove references to pfe-accordion

* fix(accordion): remove pfe icon

* fix(accordion): privatize `on`

* fix(accordion): adding color context property, icon fill color, css panel spacing

* fix(accordion): removing relect attr for consumer for panel, header

* fix(accordion): dark theme border color, arrow direction, rotation, border right length on header

* chore: skipping failing tag tests from merge

* fix: removing skip from test, updating package-lock.json

* fix(accordion): making border-right, padding css var into logical properties

* fix(accordion): making on property private

* docs(accordion): split off context demo

* fix(accordion): context

* fix(context)!: remove `attribute` from context consumer

* fix(context): get attribute name from decorated property

* docs(accordion): rtl

* fix: make `on` private

Co-authored-by: brian <brian@LAPTOP-TFG37H82.attlocal.net>
Co-authored-by: Benny Powers <web@bennypowers.com>
Co-authored-by: Benny Powers <bennypowers@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for a11y review Needs accessibility review new component New component to be created
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat]: <rh-accordion> ready to migrate
4 participants