-
Notifications
You must be signed in to change notification settings - Fork 866
[HTML5 Article Renderer] Apply image styling #13567
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
[HTML5 Article Renderer] Apply image styling #13567
Conversation
Build Artifacts
|
644aed1 to
13437dd
Compare
…hover/focus shadows
…& keydown (Enter/Space) events
13437dd to
149345f
Compare
| const ALLOWED_URI_REGEXP = /^(?:(?:blob:https?|data):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i; | ||
| const FORBID_TAGS = ['style', 'link']; | ||
| const FORBID_ATTR = ['style']; | ||
| const FORBID_ATTR = ['style', 'width', 'height']; |
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.
What is the motivation for forbidding the width and height attributes?
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.
The image in the test resource has a width=300 attribute, which overrides the defined image size in the style.scss file. Forbidding the width and height ensures full control over the image size, allowing it to follow the Figma design (width: 100%, max-width: 1200px, max-height: 80vh).
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.
Makes sense, thanks!
akolson
left a comment
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.
No further comments here. This should be good to merge!
Thanks @WinnyChang!
Summary
expandicon to KDS and used it on the expand icon button.Screen Recordings - Mouse Hover Effects and Responsive Sizing
Before
before-image-styling-mouse-and-responsive.mov
After
after-image-styling-mouse-and-responsive.mov
Screen Recordings - Tab Navigation
Before
before-image-styling-keyboard.mov
After
after-image-styling-keyboard.mov
References
Issue - #13504
Add expand icon PR - learningequality/kolibri-design-system#1068
Reviewer guidance
Check if: