ampproject / ampproject/amphtml

[amp-truncate-text:1.0] Bento tracking issue

Open
#31,685 3 comments 0 reactions 1 assignee Claimed by @rcebulko View on GitHub
Stale WG: bento
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

(## High-level requirements
| Consideration | Ready when | Status |
| ------------- | ------------- | ------- |
| Component compatibility | [Conformance with 0.1 (see below)](https://amp.dev/documentation/components/amp-truncate-text/) | ✖️ |
| Testing | Unit tests and e2e tests from 0.1 | ✖️ |
| Internationalization | n/a | ❓ |
| Analytics | n/a | n/a |
| Accessibility | Audit performed, [[Reference from 0.1?]] |✖️ |
| Page experience | Audit performed |✖️ |
| Documentation | Written |✖️ |
| Storybook | Samples written | ✖️ |

## Component compatibility
Attributes to support: [none (?)]

### Migration Notes:

[none yet]

## Open tasks:

- [ ] Initial implementation in #32068
- [ ] Watch for attribute mutations in Bento mode
- [ ] Add `ResizeObserver` to re-run truncation on resize
- [ ] Remove usage of `` in Preact mode, if possible
- [ ] Rewrite truncation logic for Preact, possibly removing related CSS/JSS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.