chore: bump form input font-size to 16px to prevent iOS focus-zoom #6
@@ -150,7 +150,7 @@ input[type="file"] {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.6rem 0.75rem;
|
padding: 0.6rem 0.75rem;
|
||||||
font-family: var(--font);
|
font-family: var(--font);
|
||||||
font-size: 13px;
|
font-size: 16px;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
border: var(--border);
|
border: var(--border);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ describe('public/style.css (file contents)', () => {
|
|||||||
expect(css).toContain('--font-mono');
|
expect(css).toContain('--font-mono');
|
||||||
expect(css).toMatch(/\.share-box input\[readonly\][\s\S]*?font-family:\s*var\(--font-mono\)/);
|
expect(css).toMatch(/\.share-box input\[readonly\][\s\S]*?font-family:\s*var\(--font-mono\)/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('uses font-size >= 16px on text-entry inputs to prevent iOS focus-zoom', () => {
|
||||||
|
expect(css).toMatch(
|
||||||
|
/input\[type="text"\][\s\S]*?input\[type="password"\][\s\S]*?\{[\s\S]*?font-size:\s*(1[6-9]|[2-9]\d)px/
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('GET /public/style.css', () => {
|
describe('GET /public/style.css', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user