Skip to content

Allow text max width utility in basic section list blocks #5707

@jmuzina

Description

@jmuzina

Component/pattern to amend

Basic Section - list block

Context: canonical/canonical.com#2096 (comment)

Behavior to amend

The lists generated by Basic Section cannot apply the text max width utility unless u-text-max-width is wrapped around the entire basic section pattern (which applies the utility at a higher level than we should be applying it). This means users don't have an easy or idiomatic way to apply the utility to lists generated by the pattern.

We should decide:

  1. If the text max width utility should be the default behavior of lists generated by the pattern. If yes, it can be added as a class here. This is a Design Question.
  2. If it should not be default behavior, whether we should expose a attrs field for the list block and allow the user to pass arbitrary attrs (such as class), or simply expose a named is_max_width attr. This depends on whether we see text max width being a frequent use case or not - if it is frequent, we should expose it intentionally to make consumption easier. This is a Design and Engineering Question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighShould be addressed within current iterationTier: SitesWG: ValidatedValidate working group proposals

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions