-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor(web, web-twig, web-react): FileUploader imageObjectFit from data-attr to CSS #1132
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 87c5a5d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
✅ Deploy Preview for spirit-design-system-demo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system-storybook canceled.
|
✅ Deploy Preview for spirit-design-system-validations canceled.
|
✅ Deploy Preview for spirit-design-system-react canceled.
|
First of all, the information I see in a commit message is insufficient. Secondly, this data attribute is a part of the previous version, so removing it will break someone's code if used -> BREAKING CHANGE. So I would like to ask why we are removing this data attribute in favor of usage |
- Update the implementation to set image object fit directly using CSS properties, eliminating the need for the data attribute and js plugin
- Added demo for FileUploaderAttachment with CSS image-object-fit: contain in web package
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.
Please consider updating the commit message so it's clear it's all about FileUploader
🙂. If length limit is the problem, you can commit each package separately.
Also, the change is rather about using something else instead of data
attributes, not just about removing them 🙂.
packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig
Show resolved
Hide resolved
packages/web-react/src/components/FileUploader/demo/FileUploaderAttachment.tsx
Show resolved
Hide resolved
packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig
Outdated
Show resolved
Hide resolved
packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig
Outdated
Show resolved
Hide resolved
…style - Update the implementation to set image object fit directly using CSS properties, eliminating the need for the data attribute and js plugin
- Added demo for FileUploaderAttachment with image-object-fit: contain in web-twig package #DS-1036
…achment - Added demo for FileUploaderAttachment with image-object-fit: contain in web-react package
cdc8e7c
to
7ff223e
Compare
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.
Nice work 👍
- Changed class selectors for data selectors in JS plugin
5e457ba
to
87c5a5d
Compare
Description
Additional context
It is now working without the need for a JS plugin
Demo
Issue reference
Object fit nefunguje ve Twigu