You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current file block uses RichText for the download button which limits styling/functionality
Difficult to customize button appearance and behavior
Inconsistent with WordPress's block system for button handling
Test.File.block.mp4
What is your proposed solution?
Replace the current RichText-based download button with an InnerBlocks implementation that specifically allows the core Button block. This solution leverages WordPress's existing button block infrastructure while maintaining the essential download functionality. The InnerBlocks approach provides several key benefits:
The solution maintains download functionality while providing access to familiar button controls, creating a better experience for both users and developers.
Key benefits include full theme.json support, consistent editing experience, and simplified maintenance, all while preserving essential download capabilities through proper template locking.
By enforcing a template lock and specific configuration, we ensure the download functionality remains intact while opening up enhanced styling and customization capabilities. This creates a better balance between maintaining core functionality and providing improved user control over the button's appearance.
The text was updated successfully, but these errors were encountered:
related issue #57871 that recommends using file component for download links, but I need some inputs on "download" attribute if we go ahead with innerblock implementation
Mamaduka
changed the title
File Component: Enable User Customization of Download Button Appearance
File Block: Enable User Customization of Download Button Appearance
Jan 7, 2025
This is a duplicate of #57314. I would recommend searching for existing issues before creating a new one. Helps to avoid duplicates, and usually, old issues have more context.
This is a duplicate of #57314. I would recommend searching for existing issues before creating a new one. Helps to avoid duplicates, and usually, old issues have more context.
Thank you for pointing that out. I did search for existing issues but might have missed this one. My apologies!
My trick is to narrow it down using labels. Each block has a separate label, so when I want to report something, let's say an Image block related, I'll filter issues first by label and then search keywords.
What problem does this address?
Test.File.block.mp4
What is your proposed solution?
Replace the current RichText-based download button with an InnerBlocks implementation that specifically allows the core Button block. This solution leverages WordPress's existing button block infrastructure while maintaining the essential download functionality. The InnerBlocks approach provides several key benefits:
The solution maintains download functionality while providing access to familiar button controls, creating a better experience for both users and developers.
Key benefits include full theme.json support, consistent editing experience, and simplified maintenance, all while preserving essential download capabilities through proper template locking.
By enforcing a template lock and specific configuration, we ensure the download functionality remains intact while opening up enhanced styling and customization capabilities. This creates a better balance between maintaining core functionality and providing improved user control over the button's appearance.
The text was updated successfully, but these errors were encountered: