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

fix: add input-message-group popover specific rules to popper elements #767

Merged
merged 1 commit into from Mar 6, 2020

Conversation

InnaAtanasova
Copy link
Contributor

Description

For a11y reasons the input field has margin-top and margin-bottom. When the input field is used as a popover control this causes the popover body to look "detached" from the control element. One example is the form-messages that are used for input validation. For this reason we added a modifier class to the popover --input-message-group that is removing the shadow (border) from the popover body and is bringing it 0.25rem top. In NGX we are using Popper.js and we need to apply the same rules as we did for the popover body in Fundamental-styles. We added the --input-message-group modifier class to the __popper but due to the fundamental-ngx Popover specific implementation we don't have the option to apply this class to the body. We are keeping the modifier class as it was since other libs can use it but we are also adding additional rules.

@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for fundamental-styles ready!

Built with commit c636229

https://deploy-preview-767--fundamental-styles.netlify.com

@droshev droshev added this to PRs Reviewer approved in Development via automation Mar 5, 2020
@InnaAtanasova InnaAtanasova merged commit fd6d4cc into master Mar 6, 2020
Development automation moved this from PRs Reviewer approved to Done Mar 6, 2020
@InnaAtanasova InnaAtanasova deleted the fix/input-message-group-popper-issue branch March 6, 2020 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants