Skip to content

Fix text clipping in search input#457

Merged
thibaudcolas merged 2 commits into
mainfrom
copilot/fix-text-clipping-in-search-input
Jul 4, 2026
Merged

Fix text clipping in search input#457
thibaudcolas merged 2 commits into
mainfrom
copilot/fix-text-clipping-in-search-input

Conversation

Copilot AI commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

The search input clips descenders (e.g. g, p) due to browsers applying a tighter default line-height to <input> elements. This worsens with non-Latin characters that have more extreme ascenders/descenders.

Change

  • Added line-height: $base-line-height to .search__input in search.scss

The @include fs(m) mixin only sets font-size; line-height must be set explicitly on inputs to match the rest of the site (1.6).

⚠️ AI-generated contribution (GitHub Copilot Coding Agent).

Copilot AI linked an issue Jul 4, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix text clipping issue in search input Fix text clipping in search input Jul 4, 2026
Copilot AI requested a review from thibaudcolas July 4, 2026 06:39
@thibaudcolas thibaudcolas marked this pull request as ready for review July 4, 2026 06:57
Copilot AI review requested due to automatic review settings July 4, 2026 06:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes descender/ascender clipping in the search input by explicitly setting its line-height to match the site’s base typography, avoiding browser-specific <input> default line-height behavior.

Changes:

  • Set line-height: $base-line-height on .search__input to align input text metrics with the global html { line-height: $base-line-height; }.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thibaudcolas thibaudcolas merged commit bb42fa9 into main Jul 4, 2026
5 of 7 checks passed
@thibaudcolas thibaudcolas deleted the copilot/fix-text-clipping-in-search-input branch July 4, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text clipping in search input

3 participants