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

Internal: Conversion Center - Link in Bio - full height fix #27277

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

willhowat
Copy link
Contributor

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:

  • Link in bio widget - Full height option has been fixed to apply based on available breakpoints

Description

An explanation of what is done in this PR

  • The utility class name was updated in PHP but not in CSS, the two have now been aligned.
  • The utility class is-full-height-desktop has been removed as this is not one of the configured options

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 #

@willhowat willhowat requested a review from louiswol94 May 9, 2024 12:47
'default' => 'cover',
],
'position' => [
'default' => 'center center',
Copy link
Member

Choose a reason for hiding this comment

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

This looks good.

One question: How is the control displayed by default? As 'Position: Default' or as 'Position: Center Center'.

I believe that the expected behavior is 'Position: Default', and that the default styling should be handled with SCSS.

See the default settings of the Container:
Screenshot 2024-05-20 at 14 27 22

I assume that you are on the right track, because I see similar coding here: https://github.com/elementor/elementor/blob/5777fc0d3955163df07a59f37ca9f844f8866a42/includes/controls/groups/background.php#L142-L141

Copy link
Member

Choose a reason for hiding this comment

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

@willhowat Thank you for the above feedback.
I would love to hear your feedback on this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hein-obox this is displayed as in your example 'Default'. We have not set any defaults in the CSS at this time but it's a sensible ask. I'll raise a separate task to get this added

@willhowat willhowat requested a review from hein-obox May 21, 2024 09:44
hein-obox
hein-obox previously approved these changes May 21, 2024
$available_devices[ $breakpoint_key ] = $breakpoint->get_label();
$default_devices[] = $breakpoint_key;
}
$configured_breakpoints = $this->get_configured_breakpoints();
Copy link
Contributor

Choose a reason for hiding this comment

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

@willhowat Can you not use Plugin::$instance->breakpoints->get_active_devices_list()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@willhowat willhowat requested a review from louiswol94 May 29, 2024 08:45
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.

None yet

4 participants