-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix(image-with-caption): adjust image button background color #10279
fix(image-with-caption): adjust image button background color #10279
Conversation
packages/web-components/src/components/image/__stories__/image.stories.ts
Outdated
Show resolved
Hide resolved
Deploy preview created for package Built with commit: b8daaadd2146fc8a0b7ed25cd6d4c4f8d382b20b |
Deploy preview created for package Built with commit: b8daaadd2146fc8a0b7ed25cd6d4c4f8d382b20b |
Deploy preview created for package Built with commit: b8daaadd2146fc8a0b7ed25cd6d4c4f8d382b20b |
Deploy preview created for package Built with commit: b8daaadd2146fc8a0b7ed25cd6d4c4f8d382b20b |
Deploy preview created for package Built with commit: b8daaadd2146fc8a0b7ed25cd6d4c4f8d382b20b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved from my end! Thanks for working on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m4olivei The change looks good from a design perspective
If we are going to keep the SVG as an example demo I'd like to change the knob label to SVG (transparent background) or something like that so it's a bit more clear.
I'll also just ping the over devs to get any ideas for a better placement (if we're keeping it)
@oliviaflory I've made the adjustment to the knob label: https://ibmdotcom-webcomponents.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/10279/index.html?path=/story/components-image--default Thanks for taking a look! |
@m4olivei There actually is a custom loader being used, but it's never played nice with assets loaded in Storybook (gotta fix that). In the meantime, I think the best way would be to take the data and put it into its own file, e.g. const foo = 'monster-encoded-chunk-of-text';
export default foo; Then you can just import as usual and use that in |
Yep, great suggestion. I've done exactly that. Thanks @kennylam ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @m4olivei!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @m4olivei !
Related Ticket(s)
#10250
https://jsw.ibm.com/browse/ADCMS-3105
Description
Sets the background style to transparent for the
<button>
element used in the shadow DOM of the<dds-image>
and<dds-image-with-caption>
components, such that when used with a transparent image (SVG, transparent gif/png), the browser's default button grey does not show through.Note that the original issue was reported for
<dds-image-with-caption>
, but the issue equally effects<dds-image>
component as well. Note also that the<dds-image-with-caption>
button was recently deprecated, it's features merged with<dds-image>
. Use of<dds-image-with-caption>
should be replaced by<dds-image>
(see #8839). The deprecation is documented in the Storybook README for the Image component.Testing Instructions
Changelog
Changed
background-color: transparent
to the button styles for the<dds-image>
component when in lightbox mode.