-
Notifications
You must be signed in to change notification settings - Fork 60
added screen for HFB #1262
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
base: release-candidate
Are you sure you want to change the base?
added screen for HFB #1262
Conversation
build/main.asset.php
Outdated
@@ -1 +1 @@ | |||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'a4bf903159352f100bfb'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What: The version number in the asset file is updated. However, the reason for the updated version isn't clear.
Why: It's important to document the reason behind version changes to help other developers understand the context and the impact of the changes. This also aids in maintaining version control best practices.
How: Consider adding a comment above the version update to indicate what changes prompted the update. For example, you might note 'Version updated to reflect new features implemented in Header & Footer Builder'.
@@ -1,4 +1,10 @@ | |||
/*!************************************************************************************************************!*\ | |||
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./src/styles.css ***! | |||
\************************************************************************************************************/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What: The addition of multiple comment blocks indicating CSS source loading can clutter the stylesheet.
Why: While documenting loaded sources is helpful for debugging, excessive comments can impact readability and maintainability. It's essential to find a balance to ensure that developers can still read the CSS without being overwhelmed by comments.
How: Consider keeping only essential comments that add significant value to the code. Alternatively, integrate documentation in a README or dedicated documentation file rather than within the CSS.
\************************************************************************************************************/ | ||
@import url(https://fonts.googleapis.com/css?family=Josefin+Sans); | ||
/*!****************************************************************************************************************************************!*\ | ||
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/@fontsource/figtree/index.css ***! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What: The repeated @font-face
declarations for 'Figtree' could be optimized to avoid redundancy.
Why: Redundant declarations can lead to increased file size and redundancy, which complicates maintenance and can affect performance slightly when files are larger than necessary.
How: If all @font-face
declarations share the same properties (apart from the unicode-range
and src
), they can be merged into a single declaration to reduce the size of the CSS.
…e/header-footer-elementor into new-header-footer-base
Description
Main Purpose: This pull request adds a new screen for the Header & Footer Builder (HFB) functionality within the application, enhancing user experience and customizability for managing headers and footers.
Key Changes:
HFB
component along with several sub-components includingAllLayouts
,Header
,Footer
,BeforeFooter
,CustomBlock
, andSidebarMenu
to structure the HFB interface."hfb"
to facilitate easy navigation.Additional Notes:
enqueue_admin_scripts
function.Screenshots
Types of changes
How has this been tested?
Checklist: