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

feat(news-ticker): Icon or image for each item, iteration on styles for EC and EU - FRONT-4463 #3447

Merged
merged 17 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/implementations/twig/components/news-ticker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ npm install --save @ecl/twig-component-news-ticker
- **"items"** (array) (default: []) slide items
- "content" (string)
- "link" (string) (optional)
- "icon" (object) Object of type icon
**OR**
- "img" (object)
- "path" (string) (default: '')
- "title" (string) (default: '')
- "alt" (string) (default: '')
- **"counter_label"** (string) (default: 'of')
- **"sr_external"** (string) (default: 'External link') screen reader label for external icon
- **"sr_previous"** (string) (default: 'Previous news') screen reader label for previous button
Expand All @@ -35,16 +41,25 @@ npm install --save @ecl/twig-component-news-ticker
items: [
{
content: 'EMA starts rolling review of COVID-19 vaccine Vidprevtyn',
link: 'https://www.ema.europa.eu/en/news/ema-starts-rolling-review-covid-19-vaccine-vidprevtyn',
link: 'https://www.ema.europa.eu/en/news/ema-starts-rolling-review-covid-19-vaccine-vidprevtyn',
icon: {
name: 'euro',
},
},
{
content:
'President von der Leyen announced that the EU has achieved its goal of fully vaccinating 70% of its adult population on 31 August',
link: 'https://ec.europa.eu/commission/presscorner/detail/en/ip_21_4362',
icon: {
name: 'euro',
},
},
{
content:
'President von der Leyen announced that the EU has achieved its goal of fully vaccinating 70% of its adult population on 31 August',
icon: {
name: 'euro',
},
},
...
],
Expand Down
Loading
Loading