Skip to content

Commit 8fa8e7e

Browse files
committed
Smaller icon in form input field.
1 parent a22268a commit 8fa8e7e

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎frontend/purestack.studio/components/_nav.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"pageLinks": true,
3-
"sequence": [
4-
"index.mdx",
5-
"guides"
6-
],
3+
"sequence": ["index.mdx", "guides"],
74
"items": [
85
{
96
"id": "guides",

‎frontend/purestack.studio/siteConfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949
},
5050
"consent": {
51-
"enabled": false,
51+
"enabled": true,
5252
"policyVersion": "2026-09-15",
5353
"categories": [
5454
{

‎packages/ts-components/src/standard/form/formStyle.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ function registerFormFieldStyles(theme: ThemeMode, palette: ThemePalette) {
8383
styleBuilder
8484
.select('.form-block__input-icon', theme)
8585
.color(palette.current.text.subtle)
86+
// Size the icon from the field's text, not from the surrounding page, so it
87+
// stays in proportion with the value and placeholder beside it.
88+
styleBuilder
89+
.select('.icon.form-block__input-icon', theme)
90+
.fontSize(palette.font.size.sm)
91+
.width('1.4em')
92+
.height('1.4em')
8693
styleBuilder
8794
.select(
8895
'.form-block__input-shell > .form-block__input-icon:first-child',

‎packages/ts-ssg/sample-content/siteConfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"enabled": false
3939
},
4040
"consent": {
41-
"enabled": false
41+
"enabled": true
4242
},
4343
"pagefind": {
4444
"enabled": true

0 commit comments

Comments
 (0)