Skip to content

Fix: Abilities Explorer: Descriptions are excessively trimmed depending on the language#592

Draft
hbhalodia wants to merge 1 commit into
WordPress:developfrom
hbhalodia:fix/issue-588
Draft

Fix: Abilities Explorer: Descriptions are excessively trimmed depending on the language#592
hbhalodia wants to merge 1 commit into
WordPress:developfrom
hbhalodia:fix/issue-588

Conversation

@hbhalodia
Copy link
Copy Markdown
Contributor

@hbhalodia hbhalodia commented May 20, 2026

What?

Closes #588

Why?

  • PR is necessary to make sure Abilities description are not trimmed too much for the languages that uses characters for counting.

How?

  • Removes trim functoin from the description.
  • Use CSS line-clamp to make description to only single line and trim other part.

Use of AI Tools

  • None

Testing Instructions

Screenshots or screencast

Before After
Screenshot 2026-05-20 at 1 53 00 PM Screenshot 2026-05-20 at 1 52 03 PM

Changelog Entry

Changed - Used css line-clamp property for trimming instead of WordPress trim function on abilities description.

Open WordPress Playground Preview

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.06%. Comparing base (7fafa86) to head (b46b4f9).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #592   +/-   ##
==========================================
  Coverage      73.06%   73.06%           
  Complexity      1731     1731           
==========================================
  Files             85       85           
  Lines           7466     7466           
==========================================
  Hits            5455     5455           
  Misses          2011     2011           
Flag Coverage Δ
unit 73.06% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul added this to the 1.1.0 milestone May 21, 2026
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.

Abilities Explorer: Descriptions are excessively trimmed depending on the language

2 participants