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: Floating Buttons - various fixes #5

Merged
merged 4 commits into from
Jun 11, 2024

Conversation

mserino
Copy link

@mserino mserino commented Jun 10, 2024

PR Checklist

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Summary

This PR can be summarized in the following changelog entry:

Description

An explanation of what is done in this PR

Test instructions

This PR can be tested by following these steps:

Quality assurance

  • I have tested this code to the best of my abilities
  • I have added unittests to verify the code works as intended
  • Docs have been added / updated (for bug fixes / features)

Fixes #

@mserino mserino requested a review from nicoladj77 June 10, 2024 15:04
@mserino mserino self-assigned this Jun 10, 2024
@mserino mserino requested review from willhowat and removed request for nicoladj77 June 10, 2024 15:11
height: var(--e-contact-buttons-icon-size-small);
width: var(--e-contact-buttons-icon-size-small);

svg {

Choose a reason for hiding this comment

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

@mserino just a thought here as I'm not overly familiar with this widget, but can the SVG height & width use the same custom properties e.g. --e-contact-buttons-icon-size-small or perhaps be set once as height: 100%, width: 100%; so match the container rather than resetting with each size variation?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah I'm hardcoding the values since they will always be depending on the size of the button, and they're decided by design. It didn't make much sense to create variables as they'll always have those size and they're fixed.

&__contact-tooltip {
background-color: var(--e-contact-buttons-tooltip-bg);
border-radius: 16px;
box-shadow: 2px 4px 4px 0 rgba(0, 0, 0, 0.15);

Choose a reason for hiding this comment

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

Maybe use a more modern format for RGBA?
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb

Copy link
Author

Choose a reason for hiding this comment

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

@willhowat this is the default box shadow that is coming out from the box shadow style controls. It's supposed to be overwritten anyway.

@mserino mserino requested a review from willhowat June 11, 2024 11:06
@mserino mserino merged commit 497b3c7 into feature/20240710-develop Jun 11, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants