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

Added the styles for the new gutenberg-based search widget #1647

Merged
merged 3 commits into from Mar 13, 2022

Conversation

kirannasim
Copy link
Contributor

@kirannasim kirannasim commented Mar 4, 2022

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I pulled my branch from develop.
  • I am submitting my pull request to develop.
  • I have resolved any conflicts merging this pull request would create.
  • I have checked that there aren't other open Pull Requests for the same update/change.
  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • (Optional) My change requires a change to the documentation.
  • (Optional) I have updated the documentation accordingly.
  • (Optional) My change requires a change to the translations.
  • (Optional) I have updated the translations accordingly.
  • composer cs:check has passed locally.
  • composer lint:php has passed locally.
  • I have read the CONTRIBUTING document.

Related Issues or Roadmap requests

Further comments

@bacoords bacoords merged commit 857c878 into develop Mar 13, 2022
.wp-block-search {
.wp-block-search__label {
@if variable-exists('bootstrap4') {
@include sr-only();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think @extend would give smaller CSS.

@if variable-exists('bootstrap4') {
@include sr-only();
} @else {
@include visually-hidden();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think @extend would give smaller CSS.

@extend .input-group;

.wp-block-search__input {
@extend .form-control;
Copy link
Contributor

Choose a reason for hiding this comment

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

@bacoords a from-control mixin as mentioned in #1661 would make perfectly sense here.

@@ -190,10 +194,17 @@ a.skip-link {
margin-left: 0;
}

@extend .btn-primary;
@if variable-exists('bootstrap4') {
@include button-variant( $primary, $primary );
Copy link
Contributor

Choose a reason for hiding this comment

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

@extend .btn-primary; gives marginally smaller CSS

margin-left: 0;
}

@if variable-exists('bootstrap4') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be simplified to

@include button-variant( $primary, $primary );
@if variable-exists('bootstrap4') {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

@IanDelMar IanDelMar mentioned this pull request Mar 18, 2022
17 tasks
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.

searchform.php doesn't seem to override the new gutenberg-based search widget
3 participants