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(context-pad): robust position in line-height != 1 scenarios #630

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

nikku
Copy link
Member

@nikku nikku commented Mar 23, 2022

The current context pad styles are prone to break in environments where line-height is != 1.

I.e. reproducible on demo.bpmn.io if body { line-height: 10; } is added as a CSS directive.

This PR fixes the behavior; it also ensures that mixed images + icon fonts (appropriately sized) are aligned:

Chrome

screenshot 2BZAvz

Firefox

screenshot ORLSCZ

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Mar 23, 2022
@nikku nikku requested review from a team, Skaiir, marstamm and smbea and removed request for a team March 23, 2022 19:13
Copy link
Contributor

@marstamm marstamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! should the target branch be master because it is a fix?

@nikku nikku changed the base branch from develop to master March 24, 2022 08:21
@nikku
Copy link
Member Author

nikku commented Mar 24, 2022

Changed the base. Thanks for noticing.

@fake-join fake-join bot merged commit 318cb8a into master Mar 24, 2022
@fake-join fake-join bot deleted the lh-fix branch March 24, 2022 08:22
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants