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

Update TopicSelector styles #989

Merged
merged 3 commits into from
Nov 3, 2017

Conversation

Sekhmet
Copy link
Contributor

@Sekhmet Sekhmet commented Nov 3, 2017

Fixes #988.

This changes how TopicSelector behaves on smaller screens.

  • TopicSelector items are now aligned in center
  • "Sort by" and current sort now have white-space set to nowrap to prevent
    breaking it.
  • "Sort by" and current sort now have display set to inline-block to
    cause them to split to two lines if there is no room.

Before:
image
After:
image

This changes how TopicSelector behaves on smaller screens.
- TopicSelector items are now aligned in center
- "Sort by" and current sort now have white-space set to nowrap to prevent
breaking it.
- "Sort by" and current sort now have display set to inline-block to
cause them to split to two lines if there is no room.
@Sekhmet Sekhmet self-assigned this Nov 3, 2017
@bonustrack bonustrack temporarily deployed to busy-nd-pr-989 November 3, 2017 12:42 Inactive
@@ -20,11 +21,18 @@

&__sort {
color: #99aab5;
text-align: right;

span:first-of-type {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to use a className here rather than selecting the first span? Maybe use &__label for className="TopicSelector__sort__label" or className="TopicSelector__sort__title" or something else similar?

@bonustrack bonustrack temporarily deployed to busy-nd-pr-989 November 3, 2017 15:52 Inactive
Copy link
Contributor

@jm90m jm90m left a comment

Choose a reason for hiding this comment

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

lgtm

@Sekhmet Sekhmet merged commit a41fa5b into busyorg:new-design Nov 3, 2017
@Sekhmet Sekhmet deleted the topic-selector-responsive branch November 3, 2017 15:59
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.

3 participants