-
Notifications
You must be signed in to change notification settings - Fork 10
feat(pie-list): DSW-2960 implement list + list item component and tests #2404
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 77203c3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
cb8c46d to
7f35ff3
Compare
7f35ff3 to
e8e7f13
Compare
cea6f8e to
a482147
Compare
a482147 to
bd1633d
Compare
9e190f4
|
|
||
| @property({ | ||
| type: Boolean, | ||
| attribute: 'has-dividers', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we don't need this line anymore as we can use hasDividers as a css selector.
| } | ||
|
|
||
| // Dividers between items | ||
| :host([has-dividers]) ::slotted(pie-list-item:not(:last-child)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| :host([has-dividers]) ::slotted(pie-list-item:not(:last-child)), | |
| :host([hasDividers]) ::slotted(pie-list-item:not(:last-child)), |
| // Dividers between items | ||
| :host([has-dividers]) ::slotted(pie-list-item:not(:last-child)), | ||
| // Allow bespoke markup that renders native `<li>` elements. | ||
| :host([has-dividers]) ::slotted(li:not(:last-child)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| :host([has-dividers]) ::slotted(li:not(:last-child)) { | |
| :host([hasDividers]) ::slotted(li:not(:last-child)) { |
| private readonly headerLocator: Locator; | ||
| private readonly descriptionLocator: Locator; | ||
| readonly footerLocator: Locator; | ||
| private readonly page: Page; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason of this change or just a rebase issue?
Describe your changes (can list changeset entries if preferable)
Implements the initial version of the
pie-listandpie-list-itemcomponents with basic functionality:pie-list component:
variantprop supporting 'default' and 'compact' layoutsdividersprop to show separators between list items<ul role="list">pie-list-item component:
primaryTextprop for text contentselectedanddisabledstate propsAdditional changes:
Author Checklist (complete before requesting a review, do not delete any)
PIE Storybook/PIE DocsPR preview./test-aperturecommand.Not-applicable Checklist items
Reviewer checklists (complete before approving)
Mark items as
[-] N/Aif not applicable.Reviewer 1 - @jamieomaguire
PIE Storybook/PIE DocsPR preview.Reviewer 2 - @ashleynolan
PIE Storybook/PIE DocsPR preview.