amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-facebook: add data-align-center attribute

Open aghassemi opened this issue 9 years ago • 4 comments

Motivation

Currently amp-facebook component does not provide a way to center align the content.

The solution

amp-facebook should expose a data-align-center attribute. If the attribute is added by the page author text-align:center should be added to the <div id="c">.

Testing

Look at a sample in https://s.codepen.io/aghassemi/debug/zprmzV , note that the embed is not center aligned.

Now create a similar sample but set the new data-align-center attribute to amp-facebook, it should now be aligned to the center.

Step by step

Once approved, your changes will be merged. ⚡⚡⚡Congrats on making your first contribution to the AMP Project!⚡⚡⚡ You'll be able to see it live across the web soon!

Thanks, and we hope to see more contributions from you soon.

Questions?

If you have questions ask in this issue or on your Pull Request (mentioning @aghassemi) or see the How to get help section of the Getting Started guide.

aghassemi avatar Nov 16 '17 23:11 aghassemi

Setting the environment up to solve this @aghassemi. I'll update when PR is ready.

rojasmi1 avatar Nov 17 '17 18:11 rojasmi1

@rojasmi1 Awesome. Thanks!

aghassemi avatar Nov 17 '17 18:11 aghassemi

Hi, should this issue be closed since the fix has landed?

nainar avatar Jan 03 '18 03:01 nainar

You are right @nainar. Closed by #12538. Thanks @vinitnalh, closing.

aghassemi avatar Jan 11 '18 01:01 aghassemi