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

✨ Interactive poll can have options with two lines #30153

Merged
merged 4 commits into from Sep 9, 2020

Conversation

mszylkowski
Copy link
Contributor

Polls can have two lines by decreasing the size of the options (changing the font-sizes). Changing the size is necessary if we want to allow 2 lines so that we can fit the text in the chip.

Original size w 2 lines New size w 2 lines Ellipsis with 3+ lines

Closes #30120

@amp-owners-bot
Copy link

amp-owners-bot bot commented Sep 8, 2020

Hey @gmajoulet! These files were changed:

extensions/amp-story-interactive/0.1/amp-story-interactive-poll.css
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js
extensions/amp-story-interactive/0.1/test/test-amp-story-interactive-poll.js

@mszylkowski mszylkowski changed the title ✨ Interactive poll twoline ✨ Interactive poll can have options with two lines Sep 8, 2020
Copy link
Contributor

@newmuis newmuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good as is! A few optional comments

@mszylkowski mszylkowski merged commit 046702f into ampproject:master Sep 9, 2020
@mszylkowski mszylkowski deleted the interactive_poll_twoline branch September 9, 2020 18:03
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
* Added base for two lines

* Sizing works for options on polls

* Added tests to check sizes (and extra tests for polls)

* Using Array.some for hasTwoLines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Story interactive] Allow polls with 2 lines
3 participants