# Custom user field class wrong?

**URL:** https://meta.discourse.org/t/custom-user-field-class-wrong/60953
**Category:** UX
**Created:** [April 13, 2017, 9:26pm UTC](https://meta.discourse.org/t/custom-user-field-class-wrong/60953 "2017-04-13T21:26:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [April 13, 2017, 9:26pm UTC](https://meta.discourse.org/t/custom-user-field-class-wrong/60953/1 "2017-04-13T21:26:44Z")

</div>

I’m not a CSS expert but it seems that there is a mistake in the classes assigned to custom user fields of the confirmation type (check box) which leads to them being wrongly displayed on the user preferences page.

While for all other types of custom user fields (drop down and text) `label` is used for the Field Name, in confirmation type fields, the `label` class is used for the actual tick box together with the Field Description. This makes CSS targeting somewhat difficult and inconsistent and results in this

 ![](https://global.discourse-cdn.com/meta/original/3X/a/7/a75a1261c6df84ca5f9fbc20ed8f0ca73082f5fc.png)

being displayed like this:

![](https://global.discourse-cdn.com/meta/original/3X/4/9/496cd19f958aad9ce31d38c529aac1936dfe1f50.png)

but this

 ![](https://global.discourse-cdn.com/meta/original/3X/c/a/ca8eefb6df335deb03b7bfbb08d0a670a058b3bd.png)

being displayed like this

![](https://global.discourse-cdn.com/meta/original/3X/5/4/54b6a2eb41f931cac54382f912d7816c1fdfb5a7.png)

Ignore the grey background in the first example (it’s custom CSS). The point is hat the Field name is not displayed in the second case.

Taking a closer look using [SelectorGadget](http://selectorgadget.com/) reveals that this seems to be intentional because of the way the default confirmation fields are supposed to be displayed:

 ![](https://global.discourse-cdn.com/meta/original/3X/a/a/aa618bb1760941330c293104fdeb981e289057f3.png)

The highlighted elements are in the label class. So I can see why, in the case of the email settings, it might make sense to put confirmation fields in the label class and not to display their field name, but I still find it somewhat inconsistent and in the case of custom fields it’s a problem.

Can anyone follow what I’m trying to say?
