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(components): listButton and accordion children creation #15967

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Aug 12, 2024

closes AUTH-657

Overview

Create ListButton, ListButtonAccordion, ListButtonRadioButton and ListButtonAccordionContainer to be used in PD redesign

Test Plan and Hands on Testing

it is not used yet so check the storybook. should be able to expand the accordion and pressing on the buttons should also expand an accordion if it is nested

Changelog

create all the above components mentioned above and add a story. also add tests for each

Review requests

Risk assessment

low

@jerader jerader requested a review from a team as a code owner August 12, 2024 16:56
@jerader jerader requested review from TamarZanzouri, koji and ncdiehl11 and removed request for a team August 12, 2024 16:56
@koji
Copy link
Contributor

koji commented Aug 13, 2024

@jerader
the design for listbutton is this?

background-color: ${disabled
? COLORS.grey35
: listButtonProps.backgroundColor};
max-width: 26.875rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you tell me where this info is?


&:hover {
background-color: ${listButtonProps.hoverBackgroundColor};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

no need focus-visible?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can add this later, the component isn't quite design finalized yet! we will have to go back and do DQA on all these components


const LIST_BUTTON_STYLE = css`
cursor: pointer;
background-color: ${disabled
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure that the design team is thinking of using aria-disabled for desktop app/web app, but if there is possibility, supporting aria-disabled now would be easy for us.

@jerader
Copy link
Collaborator Author

jerader commented Aug 13, 2024

@jerader the design for listbutton is this?

@koji yes that is it! this is the main component, i think it has a bit more info: https://www.figma.com/design/OIdG64Q5cgvEw82ish5Eee/Design-System%3A-Flex?node-id=1850-148196&t=gebqvUP69jVOIWEe-0

Copy link
Contributor

@koji koji Aug 13, 2024

Choose a reason for hiding this comment

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

Adding text like 'click the button to see Accordion, Radio, Nested' would be user-friendly for the designers.
we can notice that easily since we read code, but they don't check code.
probably adding text might DQA smooth.

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

left some comments.
once they are resolve, this pr should be good to go.

@jerader jerader merged commit d70c96b into edge Aug 14, 2024
48 checks passed
@jerader jerader deleted the components_list-button branch August 14, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants