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

Added new type of button: ModalButton - opens specified Modal #1890

Merged
merged 13 commits into from
Jul 8, 2024

Conversation

joshbermanssw
Copy link
Collaborator

@joshbermanssw joshbermanssw commented Jul 4, 2024

In #1879 we wanted to ensure that buttons on the home-page COULD act the same as the buttons in the navigation bar - in this case we wanted component to be able to open modals as well as open links.

This PR modifies the actions template allowing users to pick from three options: [ModalButton, LinkButton, CodeButton] in the new ButtonType field. There is also an option selector for the available modals which a user can chose from


Update:

After a conversation with @bradystroud for future proofing the UX, we have created 3 seperate components for each of the buttons. Now every single time we referenced the actions component we instead get the option of different buttons to click/ use.
This being the actions button, modal button or code button. This can easily be added to with future types of buttons.

I have gone through all other pages and components and fixed where necessary.

Screenshot 2024-07-05 at 9 42 02 AM

Figure: ✨OUTDATED Modifications to Actions Template

Screenshot 2024-07-05 at 5 44 38 PM

Figure: 💄 Buttons Section

Screenshot 2024-07-05 at 5 45 06 PM

Figure: 💄Button Options

@joshbermanssw joshbermanssw requested a review from a team as a code owner July 4, 2024 23:45
Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tina-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 1:28am

Copy link
Member

@bradystroud bradystroud left a comment

Choose a reason for hiding this comment

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

LGTM

components/blocks/ActionsButton.tsx Outdated Show resolved Hide resolved
@joshbermanssw joshbermanssw merged commit 1736bae into main Jul 8, 2024
4 checks passed
@joshbermanssw joshbermanssw deleted the actionsButtonUpdate branch July 8, 2024 01:43
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.

2 participants