Skip to content

Dropdown styles - #1170

Merged
donokuda merged 13 commits into
masterfrom
dropdowns
Apr 12, 2017
Merged

donokuda merged 13 commits into
masterfrom
dropdowns

Conversation

@niik

@niik niik commented Apr 11, 2017 •

Copy link
Copy Markdown
Member

This adds some styles for our select component to make it look a bit more like our other input elements. The style changes only affect Windows at the moment as I think the native drop downs on Mac works okay.

This PR also implements the same approach to labels as was implemented for textboxes in #981, namely that the select is no longer contained within the label element. Instead it's referred to by the label element via an id selector. This lets us put some margin between the label element and the select.

Before

before

After

after

Mac

screen shot 2017-04-11 at 14 01 32

cc @donokuda

niik added 7 commits April 11, 2017 13:00
This unifies the select component with the text box component such that it it has its label element detached from its input element. This allows us to put some spacing between the label and the input

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1️⃣ 📖

Comment thread app/src/ui/lib/select.tsx Outdated

public componentWillMount() {
const friendlyName = this.props.label || 'unknown'
const inputId = createUniqueId(`TextBox_${friendlyName}`)

This comment was marked as spam.

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor

assigning @donokuda to do the design 👀

@niik niik mentioned this pull request Apr 11, 2017
9 of 11 tasks

@donokuda donokuda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple of questions but lookin' fresh!

image

Comment thread app/styles/ui/_select.scss Outdated

// Make the select look like a text box. Almost all of these
// are copy-pasted from _text-box.scss.
border: 1px solid var(--box-border-color);

This comment was marked as spam.

Comment thread app/styles/ui/_select.scss Outdated

select {
flex: 1;
&:focus {

This comment was marked as spam.

@niik

niik commented Apr 12, 2017

Copy link
Copy Markdown
Member Author

🥇

@niik niik mentioned this pull request Apr 12, 2017
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