Skip to content

feat(#2132): drop down - added more contextual examples#420

Merged
bdfranck merged 3 commits into
GovAlta:alphafrom
mxsoco:mxsoco/feat-2132
Sep 9, 2025
Merged

feat(#2132): drop down - added more contextual examples#420
bdfranck merged 3 commits into
GovAlta:alphafrom
mxsoco:mxsoco/feat-2132

Conversation

@mxsoco
Copy link
Copy Markdown
Collaborator

@mxsoco mxsoco commented Aug 15, 2025

Added the following examples to the dropdown page:

  • Choose one option from a list
image
  • Filter through a long list to choose an option
image
  • Basic question page
image

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 15, 2025

Deploy Preview for abgov-ui-component-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0d91fed
🔍 Latest deploy log https://app.netlify.com/projects/abgov-ui-component-docs/deploys/68af5d06a89de600087b6fe3
😎 Deploy Preview https://deploy-preview-420--abgov-ui-component-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 31
Accessibility: 93
Best Practices: 100
SEO: 83
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Collaborator

@bdfranck bdfranck left a comment

Choose a reason for hiding this comment

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

I looked in the deployment preview...

  • ✅ I see the correct number of examples in the Dropdown examples tab
image
  • ✅ I see an example for a simple dropdown
image
  • ✅ I see an example for a filterable dropdown
image
  • ✅ I see an example for a basic question page
image
  • ✅ I see that LTS example code uses goa prefixes while latest examples uses goab prefixes.

Copy link
Copy Markdown
Collaborator

@bdfranck bdfranck left a comment

Choose a reason for hiding this comment

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

Looks good! You just need to replace the .back-link items with a goa-ink. 👍

tags="angular"
allowCopy={true}
code={`
<a href="#" className="back-link">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We don't need the custom CSS anymore because we now have the goa-link component that lets you add a leading or trailing icon to a link. We can change it to something like the following:

 <goa-link action="back" leadingicon="chevron-back" mb="2xl">
   <a href="#">Back</a>
</goa-link>

tags="angular"
allowCopy={true}
code={`
<a href="#" className="back-link">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use a goa-link component here too.

tags="react"
allowCopy={true}
code={`
<a href="#" className="back-link">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use a goa-link component here too.

tags="react"
allowCopy={true}
code={`
<a href="#" className="back-link">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use a goa-link component here too.

`}
/>}

<a href="#" className="back-link">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use a goa-link component here too.

lang="css"
allowCopy={true}
code={`
a.back-link::before {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You can remove all this .back-link CSS once you've switched to a goa-link.

@ArakTaiRoth ArakTaiRoth requested a review from bdfranck September 8, 2025 23:20
Copy link
Copy Markdown
Collaborator

@bdfranck bdfranck left a comment

Choose a reason for hiding this comment

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

I looked at the code changes...

  • ✅ I see the Link component is being used for "Back" actions
  • ✅ I see the custom CSS for the back action is removed

I looked at the deploy preview...

  • ✅ I see the "Back" action looks as expected

Looks good to me! 👍

@bdfranck bdfranck merged commit 70a8ff2 into GovAlta:alpha Sep 9, 2025
4 checks passed
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.

Drop down: Design system website contextual example

2 participants