Disabling text selection in polls

Continuing the discussion from A better poll :bar_chart: feature:

You can disable selection in polls with this css:

.poll {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
2 Likes

No need to be so verbose, we already have a SASS mixin for this.

1 Like

Ok good idea, I added this

div.poll {
  @include unselectable;

Thanks :+1: There you go :rabbit2:

https://github.com/discourse/discourse/commit/233cdc011d8f6f04e68581f7427149897e3c4b47

oh noes! :eyes: DOUBLE UNSELECTABLE!

2 Likes

Does that mean it’s SELECTABLE? :wink:

1 Like