Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

When Find has no results, turn search field bg color red #1914

Merged
merged 1 commit into from
Oct 23, 2012

Conversation

peterflynn
Copy link
Member

When Find has no results, turn search field bg color red. Less ambiguous than old behavior where selection disappears w/ no other feedback.

Also fix indentation in search bar LESS code, and move one misplaced Dialog style to the right LESS file.

than old behavior where selection disappears w/ no other feedback.

Also fix indentation in search bar LESS code, and move one misplaced Dialog
style to the right LESS file (with better docs).
@@ -363,6 +363,11 @@
font-weight: @font-weight-semibold;
}

/* Any Dialog text in this style is automatically turned into a link that opens in the browser. Use data-href for the link's target. */
Copy link
Contributor

Choose a reason for hiding this comment

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

This is currently only used in a dialog, but it's not limited to dialogs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Only text used in a dialog will actually get turned into a clickable link though -- since the style implies actual functionality changes there, it seems fairly closely bound to Dialog for now.

@ghost ghost assigned redmunds Oct 23, 2012
margin: .3em .3em;
color: inherit;
&.no-results {
background-color: mix(@background-color-3, #FF0000, 70%);
Copy link
Contributor

Choose a reason for hiding this comment

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

Usually when I see this pattern , the text is also changed to white.

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems mixed: Firefox uses white on red, but Chrome and IntelliJ keep the text black (albeit in IntelliJ at least the red is quite pale). You think it would look better if I make the background a bit paler?

Copy link
Contributor

Choose a reason for hiding this comment

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

I just thought I'd mention it to make sure you considered it. It's ok as is and we can listen for feedback.

@redmunds
Copy link
Contributor

Done with initial review. This looks cool. Just a couple minor comments.

@redmunds
Copy link
Contributor

Looks good. Merging.

redmunds added a commit that referenced this pull request Oct 23, 2012
When Find has no results, turn search field bg color red
@redmunds redmunds merged commit 7be85a1 into master Oct 23, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants