Skip to content

Terms and Conditions label doesn't fit longer texts #24060

Closed
@DanieliMi

Description

@DanieliMi

Preconditions (*)

  1. Version: 2.2.9 | 2.3.2 | 2.4-develop
  2. Luma Theme

Summary

When creating Terms and Conditions with a longer checkbox text the label and required asterisk will break into new lines. I think this is not expected behavior and looks odd.

Steps to reproduce (*)

  1. Create new Condition with
    1.1. Condition Name: Any
    1.2. Status: Enabled
    1.3. Show Content As: Text
    1.4. Applied: Manually
    1.5. Checkbox Text: A text (>= 114 chars)
    1.6. Content: Any
  2. Stores > Configuration > Sales > Checkout > Checkout Options > Enable Terms and Conditions: Yes
  3. Flush Magento Cache
  4. Go to Checkout
  5. Proceed to Billing Step

Expected result (*)

I expect the Terms and Conditions checkbox to appear and being displayed nice.
expected

Actual result (*)

The text is too long and due to that the label is breaking into a new line. Same with the required asterisk.
actual

Metadata

Metadata

Assignees

Labels

Component: CheckoutComponent: CheckoutAgreementsFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Reproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions