Skip to content

Commit dfefff4

Browse files
jonas-jonasory-bot
authored andcommitted
fix(ax): render webauthn hidden only once
GitOrigin-RevId: 8a1cc3ba4a7118e13fef2478c91781386ab51f7b
1 parent 5c3299b commit dfefff4

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

packages/elements-react/src/theme/default/components/card/current-identifier-button.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export function DefaultCurrentIdentifierButton() {
6464
{flow.ui.nodes
6565
.filter((n) => {
6666
if (isUiNodeInputAttributes(n.attributes)) {
67-
return n.attributes.type === "hidden"
67+
return (
68+
n.attributes.type === "hidden" &&
69+
["default", "captcha"].includes(n.group)
70+
)
6871
}
6972
return false
7073
})

packages/elements-react/src/theme/default/components/card/header.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ function InnerCardHeader({
1717
const { Card } = useComponents()
1818
return (
1919
<header className="flex flex-col gap-8 antialiased">
20-
<div className="max-h-9 self-start">
21-
<Card.Logo />
22-
</div>
20+
<Card.Logo />
2321
<div className="flex flex-col gap-2">
2422
<h2 className="text-lg font-semibold leading-normal text-interface-foreground-default-primary">
2523
{title}

packages/elements-react/src/theme/default/components/card/logo.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export function DefaultCardLogo() {
88

99
if (config.project.logo_light_url) {
1010
return (
11-
<img src={config.project.logo_light_url} className="h-full" alt="Logo" />
11+
<img
12+
src={config.project.logo_light_url}
13+
className="h-full max-h-9 self-start"
14+
alt="Logo"
15+
/>
1216
)
1317
}
1418

packages/elements-react/src/theme/default/components/form/input.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ export const DefaultInput = ({
5252
return (
5353
<input
5454
{...omitInputAttributes(rest)}
55-
onClick={onClick}
56-
maxLength={maxlength}
57-
autoComplete={autocomplete}
58-
placeholder={formattedLabel}
5955
data-testid={`ory/form/node/input/${name}`}
6056
{...register(name, { value })}
6157
/>

0 commit comments

Comments
 (0)