Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks/feature shortcode problem with ellipsis #1820

Closed
2 tasks done
chalin opened this issue Feb 2, 2024 · 4 comments
Closed
2 tasks done

Blocks/feature shortcode problem with ellipsis #1820

chalin opened this issue Feb 2, 2024 · 4 comments
Assignees
Labels
design/style Front-end site design / styling e0-minutes Effort < 60 min
Milestone

Comments

@chalin
Copy link
Collaborator

chalin commented Feb 2, 2024

  • For context, @LisaFC isn't sure why we have ellipsis after the "Read more" text in the first place.
  • Some (most?) projects don't want the ellipsis

PR #1503, as it is written now, causes the url_text and the ui_read_more i18n parameter to be treated inconsistently. I'd rather it be consistent. Two solutions come immediately to mind:

  1. Factor out the " …" from the shortcode and move it the value of ui_read_more in the i18n files.
    This has the advantage that it would allow any language to override the ui_read_more text completely, eliminating the ellipsis, if they so choose.
  2. Introduce a new argument to the shortcode, say url_text_suffix, that has a default value of " …"

Any other ideas? At the moment I prefer (1).

WDYT @LisaFC @emckean @fekete-robert @deining?


Edit: PSC consensus is to drop the ellipsis altogether.


@fekete-robert
Copy link
Collaborator

I think if someone needs the ellipsis it can be included explicitly in the url_text. Otherwise, (2) offers more flexibility IMO.
(Unless we want to combine the two, and have a new argument that defaults to the ui_read_more value from i18n, but that might be an overkill)

@chalin
Copy link
Collaborator Author

chalin commented Feb 3, 2024

Using url_text to control the presence of ellipsis isn't a viable option for multilingual sites.

The more I think about this, the more I'm convinced that the use of ellipsis is locale specific. In that sense, even (2) isn't a good option.

@chalin chalin added design/style Front-end site design / styling e0-minutes Effort < 60 min labels Feb 8, 2024
@chalin
Copy link
Collaborator Author

chalin commented Feb 8, 2024

PSC consensus is to drop the ellipsis altogether! \o/
Projects can add it back via i18n config if they so desire.

@chalin
Copy link
Collaborator Author

chalin commented Feb 8, 2024

Closed by #1503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design/style Front-end site design / styling e0-minutes Effort < 60 min
Projects
None yet
Development

No branches or pull requests

2 participants