CSS to change tab label dynamically?

I offer two options to solve your problem:

  1. Add #page-root in front of all your non-functioning CSS selectors if you want to use my suggestion.
  2. Remove #page-root from my code if you still want to use the button enabled option.

However, I still recommend using the first option.