Skip to content

Commit

Permalink
adicionado olhinho mostrar senho (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoey de Souza Pessanha <zoey.spessanha@zeetech.io>
  • Loading branch information
link2755 and zoedsoupe committed May 29, 2024
1 parent a02fc6f commit a05359f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
13 changes: 12 additions & 1 deletion assets/css/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@
}
}

.input-space {
display: flex;

.eye-button {
translate: -30px 10%;
width: 0px !important;
height: auto !important;
}
}


.gallery-carousel {
padding: 56px 0;

Expand Down Expand Up @@ -264,4 +275,4 @@
}
}
}
}
}
29 changes: 15 additions & 14 deletions lib/pescarte_web/design_system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -308,20 +308,21 @@ defmodule PescarteWeb.DesignSystem do
<label :if={@label} for={@name}>
<.text size="h4"><%= @label %></.text>
</label>
<input
id={@id}
name={@name}
value={@value}
type={@type}
placeholder={@placeholder}
data-inputmask={if @mask, do: "mask: #{@mask}"}
class={["input", text_input_state(@valid)]}
{@rest}
/>
<span class="dot">
<Lucideicons.eye :if={@visiblePass} />
<Lucideicons.circle_check :if={!@visiblePass} />
</span>
<div class="input-space">
<input
id={@id}
name={@name}
value={@value}
type={@type}
placeholder={@placeholder}
data-inputmask={if @mask, do: "mask: #{@mask}"}
class={["input", if(@type == "password", do: "password-toggle", else: ""), text_input_state(@valid)]}
{@rest}
/>
<button class="eye-button" :if={@type == "password"} phx-click={JS.toggle_attribute({"type", "password", "text"}, to: ".password-toggle")}>
<Lucideicons.eye />
</button>
</div>
<span :if={!is_nil(@valid)} class="dot">
<Lucideicons.circle_check :if={@valid} />
<Lucideicons.circle_x :if={!@valid} />
Expand Down

0 comments on commit a05359f

Please sign in to comment.