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

Rockfield: Fix cart button styles #8469

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Rockfield: Fix cart button styles #8469

merged 2 commits into from
Dec 6, 2024

Conversation

ouikhuan
Copy link
Contributor

@ouikhuan ouikhuan commented Nov 28, 2024

Changes proposed in this Pull Request:

This PR fixes the button styles in the Cart page for Proceed to checkout button and also remove the outline from the remove item link.

Before:

Screenshot 2024-11-28 at 6 21 47 PM

After:

Screenshot 2024-12-06 at 2 33 23 PM

Related issue(s):

#8467

@ouikhuan ouikhuan self-assigned this Nov 28, 2024
Copy link
Contributor

Preview changes

I've detected changes to the following themes in this PR: Rockfield.
You can preview these changes by following the links below:

I will update this comment with the latest preview links as you push more changes to this PR.

Note

The preview sites are created using WordPress Playground. You can add content, edit settings, and test the themes as you would on a real site, but please note that changes are not saved between sessions.
Child themes are dependent on their parent themes. You will have to install the parent theme as well for the preview to work correctly.

@ouikhuan ouikhuan requested a review from a team November 28, 2024 10:41
@ouikhuan ouikhuan added the Groundskeeping Worked on by Dotcom Groundskeeping label Nov 28, 2024
@ouikhuan
Copy link
Contributor Author

Hi @Automattic/theam 👋 I'm working on this issue from GroundsKeeping rotation so first timer here! The PR is a CSS fix, but from the theme check above it seems to trigger quite a few error that's not related to the proposed fix, what would you suggest for us to move this forward?

@alaczek
Copy link
Contributor

alaczek commented Dec 6, 2024

Could we style this button to match the theme?

image

I had a quick look at the failing checks, and I don't think we have to worry about this - I think they are looking for theme.json which this theme doesn't have as it's older.

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Theme-Check results

rockfield: There are required changes on the theme ❌.

❎ REQUIRED

  • Could not find add_theme_support( 'automatic-feed-links' ). See: add_theme_support
  • bump-version-numbers.sh rebuild-child-themes.sh Shell script file found. This file must not be in the production version of the theme.
  • Tested up to: is missing from your style.css header. Also, this should be numbers only, so 5.0 and not WP 5.0
  • Requires PHP: is missing from your style.css header.
  • No reference to add_theme_support( "title-tag" ) was found in the theme.
  • The theme appears to use dynamic_sidebars() but no register_sidebar() was found. See: register_sidebar
💡 RECOMMENDED (13)
  • No reference to register_block_pattern was found in the theme. Theme authors are encouraged to implement custom block patterns as a transition to block themes.
  • No reference to register_block_style was found in the theme. Theme authors are encouraged to implement new block styles as a transition to block themes.
  • Could not find the comment-reply script enqueued.
  • No reference to post-thumbnails was found in the theme. If the theme has a thumbnail like functionality, it should be implemented with add_theme_support( "post-thumbnails" ) in the functions.php file.
  • .wp-caption css class is recommended in your theme css.
  • .wp-caption-text css class is recommended in your theme css.
  • No reference to add_theme_support( "custom-header", $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
  • No reference to add_theme_support( "custom-background", $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
  • No reference to add_theme_support( "custom-logo", $args ) was found in the theme. It is recommended that the theme implement this functionality.
  • No reference to add_theme_support( "html5", $args ) was found in the theme. It is strongly recommended that the theme implement this functionality.
  • No reference to add_theme_support( "responsive-embeds" ) was found in the theme. It is recommended that the theme implement this functionality.
  • No reference to add_theme_support( "align-wide" ) was found in the theme. It is recommended that the theme implement this functionality.
  • No reference to add_theme_support( "wp-block-styles" ) was found in the theme. It is recommended that the theme implement this functionality.
⚠️ WARNING (11)
  • screenshot.png is 1.1 MB in size. Large file sizes have a negative impact on website performance and loading time. Compress images before using them.
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors-css-variables.php. Function __, with the arguments 'Background Color'. Line 22: __( 'Background Color' )
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors-css-variables.php. Function __, with the arguments 'Foreground Color'. Line 38: __( 'Foreground Color' )
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors-css-variables.php. Function __, with the arguments 'Primary Color'. Line 54: __( 'Primary Color' )
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors-css-variables.php. Function __, with the arguments 'Secondary Color'. Line 70: __( 'Secondary Color' )
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors-css-variables.php. Function __, with the arguments 'Tertiary Color'. Line 86: __( 'Tertiary Color' )
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors.php. Function __, with the arguments 'Background Color'. Line 90: ), __( 'Background Color' ) );
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors.php. Function __, with the arguments 'Link Color'. Line 214: ), __( 'Link Color' ) );
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors.php. Function __, with the arguments 'Text Color'. Line 364: ), __( 'Text Color' ) );
  • Found a translation function that is missing a text-domain in the file inc/wpcom-colors.php. Function __, with the arguments 'Secondary Color'. Line 380: ), __( 'Secondary Color' ) );
  • More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are rockfield, varia.

@ouikhuan
Copy link
Contributor Author

ouikhuan commented Dec 6, 2024

I had a quick look at the failing checks, and I don't think we have to worry about this - I think they are looking for theme.json which this theme doesn't have as it's older.

Thanks for having a look @alaczek !

Could we style this button to match the theme?

Sure, I've updated the CSS so it's matching the theme style now and ready for re-review, could you have another look once you have some time? Thank you!

Screenshot 2024-12-06 at 2 33 23 PM

Copy link
Contributor

@alaczek alaczek left a comment

Choose a reason for hiding this comment

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

This is looking good to me now. LGTM!

@alaczek alaczek merged commit 94ed2ec into trunk Dec 6, 2024
1 of 3 checks passed
@alaczek alaczek deleted the update/button-styles branch December 6, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groundskeeping Worked on by Dotcom Groundskeeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants