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

Fix search-icon when typing #44527

Merged
merged 5 commits into from
Jan 4, 2024
Merged

Conversation

Subhajit009iitr
Copy link
Contributor

@Subhajit009iitr Subhajit009iitr commented Dec 26, 2023

This PR fixes the Search-icon disappearance issue when typing something in the search bar. Earlier the magnifying glass symbol was kept within the placeholder of the input form, so whenever something was typed the Search-icon would disappear too along with the placeholder comments Search this site. I have fixed that in this PR and now the magnifying glass Search-icon stays in place at the left-most side of the search bar.
This is in the context of the issue #44416.

Copy link

linux-foundation-easycla bot commented Dec 26, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Dec 26, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @Subhajit009iitr!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 26, 2023
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Dec 26, 2023
Copy link

netlify bot commented Dec 26, 2023

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 38fee27
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/658c3e00ad32ea0008669866
😎 Deploy Preview https://deploy-preview-44527--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Dec 26, 2023
@Gauravpadam
Copy link
Member

/area web-development

@k8s-ci-robot k8s-ci-robot added the area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes label Dec 26, 2023
Copy link
Member

@Gauravpadam Gauravpadam left a comment

Choose a reason for hiding this comment

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

Thanks @Subhajit009iitr

I've seen the approach and I have a few suggestions to make:

  • Try to use an fa search (fontawesome search) icon instead of a background png; CSS would then change accordingly
  • The internal CSS is OK; Even better if you can accomodate it into assets/custom.scss

@Subhajit009iitr
Copy link
Contributor Author

Thanks @Subhajit009iitr

I've seen the approach and I have a few suggestions to make:

  • Try to use an fa search (fontawesome search) icon instead of a background png; CSS would then change accordingly
  • The internal CSS is OK; Even better if you can accomodate it into assets/custom.scss

OK I will make the changes today.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 26, 2023
@Subhajit009iitr
Copy link
Contributor Author

@Gauravpadam I have updated the code using the fa search icon
The code still has internal CSS which won't cause any functionality problems for now, If you allow I would like to work on it by opening another issue, to isolate the CSS part as it may require changing other files.

>
{{ else if .Site.Params.offlineSearch }}
<div id="search-nav-container">
<head>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why add this element?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was initially there in the code, I thought it may have some CSS properties attached to it

Copy link
Member

@Gauravpadam Gauravpadam left a comment

Choose a reason for hiding this comment

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

Thanks

Please see my inline feedback for some further improvements on the approach

@Subhajit009iitr
Copy link
Contributor Author

Subhajit009iitr commented Dec 27, 2023

@Gauravpadam I updated all the changes as per your latest feedback. Please review it once

@Gauravpadam
Copy link
Member

Thanks, I'll be happy to lgtm if either:

  • As per your suggestion in #44527(comment), You make the css external in a new PR and keep this only for html changes
  • You add a new commit migrating the internal css to /assets/custom.scss, i.e. our external css assets

@Subhajit009iitr
Copy link
Contributor Author

Thanks, I'll be happy to lgtm if either:

  • As per your suggestion in #44527(comment), You make the css external in a new PR and keep this only for html changes
  • You add a new commit migrating the internal css to /assets/custom.scss, i.e. our external css assets

I have moved the CSS component to /assets/_custom.scss as you instructed.

Copy link
Member

@Gauravpadam Gauravpadam left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks for the PR @Subhajit009iitr!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 27, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 2de852f72799d384d946081b1f9baff637c00f7b

@Gauravpadam
Copy link
Member

Some more web development issues that could be worked on - only if you'd want to.

@Subhajit009iitr
Copy link
Contributor Author

Some more web development issues that could be worked on - only if you'd want to.

Ya I would Love to! I will look into them. Thanks

@divya-mohan0209
Copy link
Contributor

Hello @Subhajit009iitr : Please could you add an appropriate description of the changes you've made in this PR and why you think these changes are necessary? This would help approvers understand your POV.

Explicit hold on the PR till the description is added.
/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 1, 2024
@Subhajit009iitr
Copy link
Contributor Author

Hello @Subhajit009iitr : Please could you add an appropriate description of the changes you've made in this PR and why you think these changes are necessary? This would help approvers understand your POV.

Explicit hold on the PR till the description is added. /hold

I have updated the description as instructed here
#44527 (comment)

@Subhajit009iitr
Copy link
Contributor Author

@divya-mohan0209 Is the description fine?

@divya-mohan0209
Copy link
Contributor

Thank you @Subhajit009iitr for getting to this so promptly!
/unhold
/approve

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 4, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: divya-mohan0209

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 4, 2024
@k8s-ci-robot k8s-ci-robot merged commit eb855a7 into kubernetes:main Jan 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants