Skip to content

Scroll to top#220

Open
Castellon-ACM wants to merge 2 commits into
trunkfrom
scroll-to-top
Open

Scroll to top#220
Castellon-ACM wants to merge 2 commits into
trunkfrom
scroll-to-top

Conversation

@Castellon-ACM

@Castellon-ACM Castellon-ACM commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #219

Open WordPress Playground Preview

@davidperezgar

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 433e8378cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

.frbl-scroll-top--left {
left: 24px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid overlapping the Back Button on the left

When Scroll to Top is configured as “Bottom left” and the existing Back Button feature is also enabled, this puts both controls at the same fixed bottom: 24px; left: 24px position; I checked the existing back button styles in assets/back-button/frontblocks-back-button.css, which use those same offsets. In that setup the later scroll-top button can cover the back button, so one of the two floating controls needs an offset or the left option should account for the back button.

Useful? React with 👍 / 👎.

Comment on lines +496 to +500
mediaFrame = wp.media({
title: '" . esc_js( __( 'Select Icon', 'frontblocks' ) ) . "',
button: { text: '" . esc_js( __( 'Use this image', 'frontblocks' ) ) . "' },
multiple: false
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Restrict the icon picker to images

The media frame is opened without a library type filter, so an admin can select a PDF, video, or other attachment even though the saved URL is rendered later as an <img> for the button icon. If a non-image attachment is chosen, the frontend icon breaks; add an image-only media filter for this picker.

Useful? React with 👍 / 👎.

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.

Implement accessible smooth scrolling for internal anchor links in Frontblocks.

2 participants