sugarlabs / sugar-web

Components for Sugar web activities
Apache License 2.0
13 stars 32 forks source link

Fix button position when mixing buttons with and without palettes #64

Closed manuq closed 11 years ago

manuq commented 11 years ago

The CSS :before selector is used to add the little arrow in the button. This works fine for the current tests, but an important test was missing: mix buttons with and without palettes. The mix provoked a displacement of the buttons with palettes.

This commit fixes that by adding :before to all buttons to make them have all the same structure in the DOM. And then adding the arrow graphic only to the ones with palettes.

manuq commented 11 years ago

Visual testcase: http://sugarlabs.github.io/sugar-web-samples/activitypalette.html