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

Adds required/optional tag option to accordion #1881

Merged
merged 6 commits into from
May 17, 2024

Conversation

irislam94
Copy link
Member

@irislam94 irislam94 commented May 17, 2024

  • Adds required/optional tag option to accordion
    • isRequired will show the text "Required" or "Optional" if the showRequiredTag property is set to "true"

Screenshot 2024-05-16 at 2 34 42 PM

Screenshot 2024-05-17 at 10 07 01 AM

Copy link

linear bot commented May 17, 2024

Copy link

cloudflare-pages bot commented May 17, 2024

Deploying radiance-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 073f20d
Status: ✅  Deploy successful!
Preview URL: https://6f672fd5.radiance-ui.pages.dev
Branch Preview URL: https://iris-ge-3328-accordion-requi.radiance-ui.pages.dev

View logs

@irislam94 irislam94 self-assigned this May 17, 2024
@irislam94 irislam94 marked this pull request as ready for review May 17, 2024 17:20
@irislam94 irislam94 requested review from a team and gallamoc May 17, 2024 17:20
/** show if the photo is required */
isRequired?: boolean;
/** when true, shows Required/Optional tag */
showRequiredTag?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

I might change the name of showRequiredTag to something like displayRequiredOrOptionalText.

The naming as is feels too similar to isRequired. Even with the comment block, I didn't fully understand the point of having both variables until looking at the actual code that references them.

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea, I'll make the change!

@irislam94 irislam94 merged commit e44375d into master May 17, 2024
10 checks passed
@irislam94 irislam94 deleted the iris/ge-3328-accordion-required-tag branch May 17, 2024 17:55
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.

None yet

2 participants