fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

add underline style for DatePicker and Dropdown

Open jensenbyte opened this issue 8 years ago • 14 comments

Add underline style for DatePicker and Dropdown as the TextField component

  • [x] Add underline style for DatePicker
  • [ ] Add underline style for Dropdown
  • [ ] Add underline style for Combox

jensenbyte avatar Jul 19 '18 10:07 jensenbyte

Can you give a bit more information about this issue/change? Do you have designs? Is this a new component?

micahgodbolt avatar Jul 19 '18 16:07 micahgodbolt

Please refer to the TextField component. I made an example https://raw.githubusercontent.com/siminture/demos/master/doc/underlined_datepicker.png

<Box>
  <TextField label="Standard TextField" />
  <TextField label="Underlined TextField" underlined />
  <DatePicker label="Standard DatePicker" />
  <DatePicker label="Underlined DatePicker" underlined />
</Box>

jensenbyte avatar Jul 19 '18 18:07 jensenbyte

Yeah, that totally makes sense. All of our pickers are capable of taking a styles object/function, which should allow you to customize them today (which would unblock you if you needed it now). Otherwise, this is a good feature request and we can put it on our backlog.

micahgodbolt avatar Jul 19 '18 18:07 micahgodbolt

For reference, we might look at using the textfield for both datepicker, dropdown, combobox so that we don't have to duplicate styles. Or at least abstracted out some basic textfield that each of the 4 components can use

micahgodbolt avatar Jul 19 '18 18:07 micahgodbolt

Hi I was looking for BasePicker with underlined so it could have the same look and feel when using it with underlined TextField. I guess it would make sense to have AutoFill to use TextField underneath

ngyukman avatar Jul 30 '18 14:07 ngyukman

@betrue-final-final does the design language of the textfield line up with pickers etc? They are currently using Autofill, which uses a standard tag. Would be interesting to see what it'd look like replacing that with and all of the duplicate functionality that's probably already been written.

@joschect - have you looked into this at all? It'd be great if all the pickers had access to the same styles. I know was just converted to css-in-js so that should make it a bit easier to customize.

micahgodbolt avatar Jul 30 '18 15:07 micahgodbolt

Just for reference, here's another request for the underlined style on DatePicker (and others) @betrue-final-final.

Issue https://github.com/OfficeDev/office-ui-fabric-react/issues/5032 also requests an underlined style for DatePicker. I have a PR open for that here, but would still like to discuss it with design before moving forward: https://github.com/OfficeDev/office-ui-fabric-react/pull/6144.

natalieethell avatar Aug 30 '18 00:08 natalieethell

I am looking forward to this revision

jensenbyte avatar Aug 30 '18 10:08 jensenbyte

We actually have this design pattern in SharePoint already so I would follow that design. @natalieethell, we can discuss in person.

betrue-final-final avatar Aug 30 '18 13:08 betrue-final-final

The underline style has been added for DatePicker (https://github.com/OfficeDev/office-ui-fabric-react/pull/6144) and we'll put the others on the backlog as they're a larger ticket item.

natalieethell avatar Aug 31 '18 17:08 natalieethell

this work will definitely be done in dropdown/combobox if/when we move forward with #6030

micahgodbolt avatar Aug 31 '18 18:08 micahgodbolt

The underline style has been added for DatePicker (#6144) and we'll put the others on the backlog as they're a larger ticket item.

good job!

jensenbyte avatar Oct 26 '18 10:10 jensenbyte

I'm not sure whether to open a new issue or just add it here, so I just do the latter: The same applies to the PeoplePicker as well. The new O365 OWA client uses this for example.

alex3683 avatar Feb 13 '19 15:02 alex3683

Closing in favor of #11345.

khmakoto avatar Jan 14 '20 01:01 khmakoto