Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,40 @@ exports[`OcTextInput > password input field > password policy > displays error s
<!--v-if-->
<div class="oc-text-input-password-wrapper"><input id="oc-textinput-20" aria-invalid="false" class="oc-text-input oc-input oc-rounded" type="password"> <button type="button" aria-label="Show password" class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-secondary oc-button-raw oc-button-secondary-raw oc-text-input-show-password-toggle oc-px-s">
<!--v-if-->
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><!----></span>
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><svg data-testid="inline-svg-stub" src="icons/eye-fill.svg" transform-source="(svg) => {
if (__props.accessibleLabel !== &quot;&quot;) {
const title = document.createElement(&quot;title&quot;);
title.setAttribute(&quot;id&quot;, svgTitleId.value);
title.appendChild(document.createTextNode(__props.accessibleLabel));
svg.insertBefore(title, svg.firstChild);
};
return svg;
}" aria-hidden="true" focusable="false"></svg></span>
</button> <button type="button" aria-label="Copy password" class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-secondary oc-button-raw oc-button-secondary-raw oc-text-input-copy-password-button oc-px-s">
<!--v-if-->
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><!----></span>
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><svg data-testid="inline-svg-stub" src="icons/file-copy-fill.svg" transform-source="(svg) => {
if (__props.accessibleLabel !== &quot;&quot;) {
const title = document.createElement(&quot;title&quot;);
title.setAttribute(&quot;id&quot;, svgTitleId.value);
title.appendChild(document.createTextNode(__props.accessibleLabel));
svg.insertBefore(title, svg.firstChild);
};
return svg;
}" aria-hidden="true" focusable="false"></svg></span>
</button>
<!--v-if-->
</div>
<portal to="app.design-system.password-policy">
<div class="oc-flex oc-text-small oc-text-input-password-policy-rule-wrapper oc-pt-s">
<div class="oc-flex oc-flex-middle oc-text-input-password-policy-rule"><span class="oc-icon oc-icon-s oc-mr-xs"><!----></span> <span class="oc-text-input-danger">8+ letters</span>
<div class="oc-flex oc-flex-middle oc-text-input-password-policy-rule"><span class="oc-icon oc-icon-s oc-mr-xs"><svg data-testid="inline-svg-stub" src="icons/close-circle-fill.svg" transform-source="(svg) => {
if (__props.accessibleLabel !== &quot;&quot;) {
const title = document.createElement(&quot;title&quot;);
title.setAttribute(&quot;id&quot;, svgTitleId.value);
title.appendChild(document.createTextNode(__props.accessibleLabel));
svg.insertBefore(title, svg.firstChild);
};
return svg;
}" aria-hidden="true" focusable="false" style="fill: var(--oc-role-error);"></svg></span> <span class="oc-text-input-danger">8+ letters</span>
<!--v-if-->
</div>
</div>
Expand All @@ -37,16 +61,40 @@ exports[`OcTextInput > password input field > password policy > displays success
<!--v-if-->
<div class="oc-text-input-password-wrapper"><input id="oc-textinput-21" aria-invalid="false" class="oc-text-input oc-input oc-rounded" type="password"> <button type="button" aria-label="Show password" class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-secondary oc-button-raw oc-button-secondary-raw oc-text-input-show-password-toggle oc-px-s">
<!--v-if-->
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><!----></span>
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><svg data-testid="inline-svg-stub" src="icons/eye-fill.svg" transform-source="(svg) => {
if (__props.accessibleLabel !== &quot;&quot;) {
const title = document.createElement(&quot;title&quot;);
title.setAttribute(&quot;id&quot;, svgTitleId.value);
title.appendChild(document.createTextNode(__props.accessibleLabel));
svg.insertBefore(title, svg.firstChild);
};
return svg;
}" aria-hidden="true" focusable="false"></svg></span>
</button> <button type="button" aria-label="Copy password" class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-secondary oc-button-raw oc-button-secondary-raw oc-text-input-copy-password-button oc-px-s">
<!--v-if-->
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><!----></span>
<!-- @slot Content of the button --> <span class="oc-icon oc-icon-s"><svg data-testid="inline-svg-stub" src="icons/file-copy-fill.svg" transform-source="(svg) => {
if (__props.accessibleLabel !== &quot;&quot;) {
const title = document.createElement(&quot;title&quot;);
title.setAttribute(&quot;id&quot;, svgTitleId.value);
title.appendChild(document.createTextNode(__props.accessibleLabel));
svg.insertBefore(title, svg.firstChild);
};
return svg;
}" aria-hidden="true" focusable="false"></svg></span>
</button>
<!--v-if-->
</div>
<portal to="app.design-system.password-policy">
<div class="oc-flex oc-text-small oc-text-input-password-policy-rule-wrapper oc-pt-s">
<div class="oc-flex oc-flex-middle oc-text-input-password-policy-rule"><span class="oc-icon oc-icon-s oc-mr-xs"><!----></span> <span class="">8+ letters</span>
<div class="oc-flex oc-flex-middle oc-text-input-password-policy-rule"><span class="oc-icon oc-icon-s oc-mr-xs"><svg data-testid="inline-svg-stub" src="icons/checkbox-circle-fill.svg" transform-source="(svg) => {
if (__props.accessibleLabel !== &quot;&quot;) {
const title = document.createElement(&quot;title&quot;);
title.setAttribute(&quot;id&quot;, svgTitleId.value);
title.appendChild(document.createTextNode(__props.accessibleLabel));
svg.insertBefore(title, svg.firstChild);
};
return svg;
}" aria-hidden="true" focusable="false" style="fill: var(--oc-role-on-surface);"></svg></span> <span class="">8+ letters</span>
<!--v-if-->
</div>
</div>
Expand Down
Loading