Skip to content

Remove yellow border from wiki search text box when unfocused and added styling when focused. #11132

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

Merged
merged 5 commits into from
May 2, 2024

Conversation

danielmyren
Copy link
Contributor

This pull request addresses issue #10238

Changes Made:

  • Removed the yellow border color from the wiki search text box when unfocused to align with user expectations.
  • Added focus styling to enhance user interaction, including a yellow/orange border and a subtle box shadow. The styling matches the behavior of the search box in the beatmap listing.

osu-css-border-style

…tle box shadow, to enhance user interaction.
Comment on lines 23 to 27
border: @_border-size solid @osu-colour-b6;

&:focus-within {
box-shadow: 0 0 10px @osu-colour-orange-1;
border: @_border-size solid @osu-colour-orange-1
Copy link
Collaborator

Choose a reason for hiding this comment

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

the style doesn't quite match with beatmap search box (wrong border size, rounding, and colour). Also the colour should use page hue css variable, not actual orange.

Copy link
Contributor Author

@danielmyren danielmyren Apr 1, 2024

Choose a reason for hiding this comment

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

I have adjusted the border size and the rounding of the border. Do we prefer the thinner border? I've also changed the color to match the other elements on the page instead of the color of wiki-notice. In order to keep the code consistent I'm still using the pre-defined colors from colors.less.

osu-css-border-style2

@danielmyren danielmyren requested review from nanaya April 1, 2024 17:32
display: flex;
flex-direction: row;

padding: 13px @_gutter;
font-size: @font-size--wiki-search;
background-color: @osu-colour-b6;

border: @_border-size solid @osu-colour-orange-1;
border: 1px solid @osu-colour-b6;
Copy link
Collaborator

Choose a reason for hiding this comment

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

update @_border-size instead otherwise the suggestion box would have wrong alignment

also don't use @osu-colour- anymore. New codes should always use the css variable. Adding more lines that need update isn't helping.

border: 1px solid @osu-colour-b6;

&:focus-within {
box-shadow: 0 0 10px @osu-colour-h2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

matching the colour with beatmap search would be preferred but I'll probably refactor the search box later anyway so it's probably fine for now (if not a bit weird when it changes again later)

@nanaya
Copy link
Collaborator

nanaya commented Apr 30, 2024

@danielmyren still interested in finishing this PR?

@nanaya nanaya enabled auto-merge May 2, 2024 04:01
@nanaya nanaya merged commit 1a86fc2 into ppy:master May 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants