Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Selectbox
« Reply #135, on February 14th, 2012, 11:28 PM »
Quote
There's no 'better' way than doing .sb() in the method chain after loading the value.
That's fine, just wanted to check whether there was or not. Given how rare it is, I don't even feel a burning need to add an updater method (that would update both the physical select and the div structure then trigger events) since calling .sb() is fine. It's still a one line call, heh.

I have no intention of touching sbox.js for just that reason ;)
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Selectbox
« Reply #136, on February 14th, 2012, 11:56 PM »
Exactly the thing. There aren't THAT many opportunities to run sb(), so why waste time checking all other select boxes, I'd rather we get multiple user reports of select boxes that should be refreshed and aren't ;)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Selectbox
« Reply #137, on February 15th, 2012, 12:00 AM »
*nods* Works for me :)
Re: Selectbox
« Reply #138, on February 17th, 2012, 03:55 PM »
On a related note, if we're styling selectboxes, would we not want to custom style checkboxes and radio buttons as well?

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Selectbox
« Reply #139, on February 17th, 2012, 05:02 PM »
..Because they're already styled..? Or so?
My main issue with non-select box styling is that select boxes have this nice rounded corner effect, but I want the default skin to have straight corners, and I have trouble determining whether I should give select boxes rounded corners or not. Hence, same issue for the rest...

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Selectbox
« Reply #140, on February 17th, 2012, 05:09 PM »
No, that's not what I mean - the select box actively looks different to what you get with the standard UI of your browser+operating system, and looks better for it, while the checkboxes/radio buttons are whatever you get served as standard, which varies from browser to browser and OS to OS. It just occurred to me it might be nice to put an image in for them (since IIRC it should be possible to do in CSS) instead of the stock ones, might give themers something nice to play with at least.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Selectbox
« Reply #141, on February 17th, 2012, 05:53 PM »
I don't know... I'm afraid it'd break something somewhere.

Any opinions?

(Also, the select box is styled entirely manually, except for the arrow. I like manual styling better :P)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Selectbox
« Reply #142, on February 17th, 2012, 05:59 PM »
If you did it with custom markup, sure it would break something. But it should be doable just with styling IIRC, in which case it shouldn't be able to break anything.

(Mind you, I have in one project actually implemented totally manual checkboxes before now, wasn't that much work and worked really well, IMO, better than using actual checkbox elements at least, heh. But I specifically didn't have to care about accessibility or anything like that)
Re: Selectbox
« Reply #143, on February 26th, 2012, 06:40 PM »
Random oddity - it looks a bit weird on the gender selector in the profile area, seeing how there's only three options, the first is blank, so it collapses the width of the selectbox to fit.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Selectbox
« Reply #144, on February 26th, 2012, 08:06 PM »
Yep... I noticed that and found it funny, but didn't feel like it was worth adding a "Choose your gender" thing because people can choose an empty answer.

Could use a fixed class on it, though. It'd ensure the largest width is used. Would make more sense I guess!

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Selectbox
« Reply #145, on February 26th, 2012, 08:17 PM »
Alternatively, how about "Prefer not to say" as the default?

(And, can we add the male/female icons via CSS like is done elsewhere? No sense having a fancy selectbox if it isn't using it to potential)

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Selectbox
« Reply #146, on February 27th, 2012, 12:19 AM »
Icons? Good idea.
Want to do it? It's easy ;)

Prefer not to say: in 95% of cases it means I'm a woman and I'm taken so don't fuck with me. I'd rather avoid this choice ;)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Selectbox
« Reply #147, on February 27th, 2012, 12:20 AM »
Quote
Icons? Good idea.
Want to do it? It's easy
I haven't looked at anywhere else it's done but I kind of get the feeling that we don't just drop the raw HTML into the select (because that wouldn't work for folks who don't have JS enabled)
Quote
Prefer not to say: in 95% of cases it means I'm a woman and I'm taken so don't fuck with me. I'd rather avoid this choice
Fair enough, heh.
Re: Selectbox
« Reply #148, on March 8th, 2012, 03:48 PM »
Oops, found a bug. Note that I'm not sure what the behaviour *should* be in this case, just that I know it's currently wrong.

📎 wedge_selectbox_size_bug.png - 11.79 kB, 640x114, viewed 119 times.


Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Selectbox
« Reply #149, on March 8th, 2012, 03:58 PM »
It's a design choice, actually... Don't you like it? :^^;:
Look at Font Face, it'll also use the new font.