Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4e73acd

Browse files
fix(register): apply consistent CSS properties to option rows (#1134)
1 parent 876d330 commit 4e73acd

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

‎src/components/layout.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
--color-orange: #e67e22;
1919
}
2020

21+
.dark {
22+
--color-options: #0e101c;
23+
}
24+
2125
.light {
26+
--color-options: #ffff;
2227
--color-text: black;
2328
--color-background: #ffff;
2429
--color-footer: #081229;

‎src/content/docs/createFormControl.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ This function create the entire form state subscription and allow you to subscri
2525
| `...returns` | <TypeText>Functions</TypeText> | `useForm` return methods |
2626

2727
<Admonition type="important" title="Notes">
28-
- This function is published at **v7.55.0** - This function is
29-
completely optional, you can consider to use this instead of `useFormContext`
30-
API. - You may find it useful if you would like to subscribe formsState by
31-
skipping react re-render.
28+
- This function is published at **v7.55.0** - This function is completely
29+
optional, you can consider to use this instead of `useFormContext` API. - You
30+
may find it useful if you would like to subscribe formsState by skipping react
31+
re-render.
3232
</Admonition>
3333

3434
<Admonition type="important" title="Rules">

‎src/content/docs/useform/register.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ By selecting the register option, the API table below will get updated.
4848

4949
<TabGroup buttonLabels={["validation", "validation and error message"]}>
5050

51-
<div style={{ background: 'var(--color-primary)', padding: 20 }}>
51+
<div style={{ background: 'var(--color-options)', padding: 20 }}>
5252

5353
| Name | Description |
5454
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -72,7 +72,7 @@ By selecting the register option, the API table below will get updated.
7272

7373
</div>
7474

75-
<div style={{ background: 'var(--color-primary)', padding: 20 }}>
75+
<div style={{ background: 'var(--color-options)', padding: 20 }}>
7676

7777
| Name | Description |
7878
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

‎src/data/api.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,8 @@ setValue('notRegisteredInput', { test: '1', test2: '2' }); // ✅ sugar syntax t
20692069
</Link>
20702070
<p>
20712071
<b className={typographyStyles.note}>Important: </b>This
2072-
is only applicable to <strong>built-in</strong> validation.
2072+
is only applicable to <strong>built-in</strong>{" "}
2073+
validation.
20732074
</p>
20742075
</p>
20752076
</td>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /