Problem/Motivation

See screenshot, taken in Module Builder:

Because the primary action in the dropbutton, 'Save' is considerably shorter than 'Save and generate code', the latter gets truncated.

Steps to reproduce

To reproduce in Module Builder:

  1. Install the module builder.
  2. At admin/config/development/module_builder create a module and save it.
  3. Once the module is saved, the save button shows the problem.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3399804

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joachim created an issue. See original summary.

kostyashupenko’s picture

I can't reproduce this bug in the core admin pages for dropbutton / small / extrasmall variants. For those who didn't use Module Builder please describe steps to reproduce

joachim’s picture

> I can't reproduce this bug in the core admin pages for dropbutton / small / extrasmall variants. For those who didn't use Module Builder please describe steps to reproduce

Yes because there are probably no buttons in core with text like that.

It would take longer to create code to reproduce this than it would to simply install Module Builder.

joachim’s picture

Issue summary: View changes
Issue tags: -Needs issue summary update
shweta__sharma’s picture

Title: Dropbutton items get truncated if they are longer than the button main item's text » Drop-button items get truncated if they are longer than the button main item's text
Issue summary: View changes
shweta__sharma’s picture

Issue summary: View changes

Laurie Lim made their first commit to this issue’s fork.

laurielim’s picture

Status: Active » Needs review
StatusFileSize
new30.13 KB
new85.02 KB
new61.62 KB

Updated dropbutton.pcss.css to wrap text inside dropdown item. Module builder is not compatible with 11.x but change can be tested on any other dropdown, e.g: the comments view. See screenshot for both module builder and comments view dropdowns.

kostyashupenko’s picture

Status: Needs review » Needs work
laurielim’s picture

Status: Needs work » Needs review

Updated the property, end result is still the same so screenshot still valid.

lauriii’s picture

Status: Needs review » Needs work

It looks like the MR still has a stylelint violation. You can fix this by running following commands and committing the changes:

cd core
yarn install
yarn run lint:css --fix
laurielim’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Stylelint has been addressed.

xjm’s picture

Title: Drop-button items get truncated if they are longer than the button main item's text » Dropbutton items get truncated if they are longer than the button main item's text
Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs manual testing

We also need to check whether this bug exists in the other core themes. Thanks!

shweta__sharma’s picture

StatusFileSize
new570.02 KB
new1.67 MB
new631.73 KB

Hi @xjm,
I have checked the issue in core themes and from my observation, the issue only exists in the claro theme. Below are some screenshots of each theme. Thanks

Claro theme

claro

Stark theme

stark

Olivero theme

olivero

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs manual testing

per #16

  • ckrina committed e3a964b0 on 11.x
    Issue #3399804 by Laurie Lim, shweta__sharma, joachim, kostyashupenko,...
ckrina’s picture

Status: Reviewed & tested by the community » Fixed

Committed e3a964b and pushed to 11.x. Thanks!

saschaeggi’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.