Opened 2 years ago
Last modified 19 months ago
#62185 new defect (bug)
Twenty Twenty-One: archive page headings do not wrap long words
| Reported by: | trushaamin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, css |
Description (last modified by )
on Beta development version (6.7-beta1), Theme Twenty Twenty-One Version: 2.3
we can go to the footer search. we can add the words and click on the search button after checking the result.
Attachments (2)
Change History (7)
This ticket was mentioned in PR #7523 on WordPress/wordpress-develop by @veryard.
2 years ago
#1
- Keywords has-patch added; needs-patch removed
#2
@
2 years ago
- Keywords needs-patch added; has-patch removed
- Summary Theme Twenty Twenty-TwoVersion: 1.8, text not show. → Theme Twenty Twenty-One Version: 1.8, text not show.
I have made a PR to resolve this, just simple adding word-break on the .search-term class.
Sorry I didn't mean to undo the has-patch :(
Thanks
#3
follow-up:
↓ 4
@
2 years ago
- Description modified (diff)
- Milestone Awaiting Review → Future Release
- Summary Theme Twenty Twenty-One Version: 1.8, text not show. → Twenty Twenty-One: archive page headings do not wrap long words
Twenty Twenty-One uses overflow-wrap: break-word for post/page headings with the .entry-title class (entry.scss).
For archive pages such as search results, the heading has a .page-title class. That class probably should have the same overflow-wrap rule (archives.scss).
Note: Patches for Twenty Twenty-One need to update the SCSS file(s), and then CSS files are compiled from them.
#4
in reply to: ↑ 3
@
2 years ago
Replying to sabernhardt:
Twenty Twenty-One uses
overflow-wrap: break-wordfor post/page headings with the.entry-titleclass (entry.scss).
For archive pages such as search results, the heading has a
.page-titleclass. That class probably should have the sameoverflow-wraprule (archives.scss).
Note: Patches for Twenty Twenty-One need to update the SCSS file(s), and then CSS files are compiled from them.
Thanks for pointing this out, must have been a late night when I made that change! I have gone ahead and updated the commit and included the change in the appropriate scss file.
Thanks!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixes the search term not breaking on smaller screens. Can switch this to be
break-allif that is preferred.