Release 3.0.1
Added default fallback values to button alignment CSS variables
View full changelog
Fixed
- Fixed button alignment CSS variables to include default fallback values (
center) fortext-align,justify-content, andalign-items
Project releases
Added default fallback values to button alignment CSS variables
center) for text-align, justify-content, and align-itemsRequires Plugins metadata field)@airfleet/wordpress-dev to ^4.0.0airfleet/wordpress-dev to ^4.0.0Added new button styles, variations, and mixins while updating the template structure and CSS variables for icon handling.
Primary Dark, Primary Light, Secondary Dark, Secondary Light, Link Dark, and Link LightIcon Chevron, Icon Position Left, and Icon Rotate 180elements-partials-button-icon-chevron-right for chevron iconassets/styles/frontend/mixins/_button.scss) with reusable button style mixins.afc-button__icon) with flexible CSS variablesAdded Background option and container wrapping to Buttons block
Background option for Buttons blockButtons block's content around containerUpdated components to support airfleet/elements/empty/$slug filter
airfleet/elements/empty/$slug filterelements-components-button-link (Button with external link)elements-components-button-relationship (Button with internal link)Added new tabs and renamed some in the button components.
elements-blocks-buttons: added Content tabdefault_style property to button componentsUpdated button components to show placeholders in the editor and added preview controls.
show_preview and preview_text to control placeholderAdded dynamic padding to exclude border size from paddings
x and y CSS properties to dynamically exclude the border size from the paddingsdefault style modifier CSSdefault variationsAdded CSS custom properties for border hover and default cursor.
box-sizingAdded two new filters for button components: style and advanced.
airfleet/elements/button/style/components (set list of button components with Style options)airfleet/elements/button/advanced/components (set list of button components with Advanced options)Replaced $content property with $_slot in elements-partials-button
elements-partials-button: replaced $content property with $_slotUpdated button components to accept custom class/attributes/data-attributes
Added views, filters, and components for customizing buttons.
elements-partials-button (partial used by all button components)elements-components-button-link (button link component)elements-components-button-relationship (button link component linked to a post/page)airfleet/elements/button/style (customize style options for buttons)airfleet/elements/button/variations (customize variations options for buttons)elements-buttonselements-button-switch