influxdata / giraffe

A foundation for visualizations in the InfluxDB UI
https://influxdata.github.io/giraffe/
MIT License
183 stars 34 forks source link

feat: add optional svg style to disable user select for Single Stat #817

Closed TCL735 closed 2 years ago

TCL735 commented 2 years ago

Related to https://github.com/influxdata/ui/issues/5928

Adds an optional svg style to disable user select on the svg text for Single Stat. This allows click-drag behavior to work without selecting the svg text.

Chrome:

https://user-images.githubusercontent.com/10736577/193149655-d1b7e1da-1a04-492e-92a7-48b04674104c.mp4

Firefox:

https://user-images.githubusercontent.com/10736577/193149696-22ed20af-d80d-4db2-a7ea-3130044c3c81.mp4

Safari:

https://user-images.githubusercontent.com/10736577/193149736-c951071f-e192-4480-9b65-fbd2c880a3df.mp4

Edge:

https://user-images.githubusercontent.com/10736577/193149767-2a46ad41-16af-489f-b853-4e1ca37f25a1.mp4