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

Figure component refactor #989

Merged
merged 12 commits into from
Jan 4, 2019
Merged

Conversation

mikemai2awesome
Copy link
Collaborator

@mikemai2awesome mikemai2awesome commented Dec 12, 2018

Jira

Summary

Clean up Figure component code and docs. Refactor Figure into web component.

Details

<bolt-figure> is now a web component. If an instance of bolt-figure already has a <figure> tag inside it, it will retain a sanitized version of that tag. Otherwise, simply include media and a caption and the web component does the rest (see the docs).

How to test

@bolt-bot
Copy link
Collaborator

⚡ PR built on Travis and deployed a now preview here:

@bolt-bot
Copy link
Collaborator

⚡ PR built on Travis and deployed a now preview here:

@bolt-bot
Copy link
Collaborator

⚡ PR built on Travis and deployed a now preview here:

@mikemai2awesome
Copy link
Collaborator Author

@danielamorse

Hey Dan, I found just 1 issue with the web component, when JS is turned off, it doesn't render any of the figure and figcaption markup.

screen shot 2018-12-28 at 12 24 29 pm

@mikemai2awesome
Copy link
Collaborator Author

@danielamorse

Never mind that, web component currently has no fallback. Can you confirm what I showed in the screenshot is the current expected behavior? @sghoweri

Daniel Morse added 2 commits January 3, 2019 14:57
…nto feature/bds-530-figure-component

# Conflicts:
#	docs-site/src/pages/pattern-lab/_patterns/02-components/figure/00-figure-docs.twig
#	docs-site/src/pages/pattern-lab/_patterns/02-components/figure/05-figure.twig
#	packages/components/bolt-figure/package.json
@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 3, 2019

⚡ PR built on Travis and deployed a now preview here:

@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 4, 2019

⚡ PR built on Travis and deployed a now preview here:

@danielamorse danielamorse merged commit 81adacb into master Jan 4, 2019
@sghoweri sghoweri mentioned this pull request Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants