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

Adjusted WooCommerce store notice positioning. #200

Merged
merged 2 commits into from
Jun 2, 2020
Merged

Conversation

jamesros161
Copy link
Contributor

When enabling a WooCommerce store notice, by default it is absolute positioned at the top of the page. However, bgtfw has it adjusted to be absolute positioned at the bottom of the page. This is undesireable as the notice will not be seen unless someone scrolls to the bottom of the page.

This PR aims to resolve #39 , however, placing the notice at the very top of the page will ave other undesireable effects, such as covering the site logo, the menu, etc. Even if the notice was placed under the masthead, if the user has submenus, it wouldn't really look right. Placing it fixed bottom of the window is better in my opinion.

There may be a feature request in the near future to give users the ability to choose the location.

@jamesros161 jamesros161 requested review from bwmarkle and rramo012 and removed request for bwmarkle May 29, 2020 18:33
src/assets/js/front-end.js Outdated Show resolved Hide resolved
Copy link
Member

@rramo012 rramo012 left a comment

Choose a reason for hiding this comment

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

Concerns with performance of notification positioning, see comment above

Copy link
Contributor Author

@jamesros161 jamesros161 left a comment

Choose a reason for hiding this comment

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

I made the requested changes

@jamesros161 jamesros161 requested a review from rramo012 June 2, 2020 16:07
@jamesros161 jamesros161 merged commit 5e35da5 into master Jun 2, 2020
Copy link
Member

@rramo012 rramo012 left a comment

Choose a reason for hiding this comment

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

Looks Good

@jamesros161 jamesros161 deleted the issue-39 branch June 10, 2020 17:58
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.

Store Notice should be at top of page
2 participants