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
feat: introduce Margins and Paddings #2131
Conversation
Deploy preview for fundamental-styles ready! Built with commit 00bc87c |
c479497
to
efd6d7d
Compare
I tried |
Hello @kavya-b Could you try to add some mixin, which will be named |
Hi @JKMarkowski that is a good idea and I have been trying this, but unfortunately it isn't working as expected.
Apparently, the |
efd6d7d
to
8101a73
Compare
@InnaAtanasova @JKMarkowski since I was not able to get around the RTL issue for |
@kavya-b I also wasn't able to combine |
Hi @InnaAtanasova what are your thoughts about this? |
8101a73
to
00dc037
Compare
@kavya-b I need to discuss this with my team but from my research I found out that other libraries do not consider additional paddings and margins applied on the element. Most of the other libraries do not apply RTL at all. I will write back to you when we have some decision about it. |
@kavya-b we just discussed the issue and we agreed that any additional padding/margins applied on the element should be ignored. |
00dc037
to
b97d9a2
Compare
@InnaAtanasova hope this is okay. |
@kavya-b looks great! Thanks for updating the docs <3 |
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.
LGTM. Great Job!
- also add a11y to example with panel header
b97d9a2
to
00bc87c
Compare
Related Issue
Closes #2119
Description
This PR introduces helper modifier classes that can be added to any element that needs some spacings through paddings or margins.
Screenshots
Before:
NA
After:
Margins:
Paddings:
Please check whether the PR fulfills the following requirements
rem
fd-*
class is used in the filefd-rtl
,fd-ellipsis
,fd-flex
,fd-selected
,fd-focus
, ect.)fd-reset()
mixin is applied to all elementsnormalize
optionunnormalize
option[ci visual]
so it can trigger chromatic visual regression (e.g.test: run chromatic visual regression [ci visual]
)