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

[TogglePassword] Add example page for ux.symfony.com #1032

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

feymo
Copy link
Contributor

@feymo feymo commented Aug 2, 2023

Q A
Bug fix? no
New feature? no
Tickets N/A
License MIT

This PR add the new TogglePassword component to ux.symfony.com with a minimalist example of what to expect "out of the box" 😄 (using default theme without any customization)

Previews

Homepage card
image

TogglePassword page
image

Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

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

👏 You even made/prepped the icon for this the (👁️ ) - really nice work once again

{% block code_block_right %}
<twig:CodeBlock
filename="templates/ux_packages/toggle_password.html.twig"
targetTwigBlock="demo_content"
Copy link
Member

Choose a reason for hiding this comment

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

Too much indentation on these 2 lines

{{ form_start(form) }}
{{ form_row(form.email) }}
{{ form_row(form.password) }}
<button type="submit" class="btn btn-primary">Login</button>
Copy link
Member

Choose a reason for hiding this comment

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

I usually indent the form_row and button - as if form_start() was actually a <form> tag. Subjective though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had a discussion with @HeahDude about this (he shares your opinion) and i agree with both of you, i like the logic 👍🏼

@weaverryan
Copy link
Member

Thanks Félix! I'll deploy this when we push out the next version it's been a pleasure reviewing your work!

@weaverryan weaverryan merged commit 02ae73b into symfony:2.x Aug 7, 2023
13 of 14 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.

2 participants