The switch to class names is for accessibility. Class names are not translated by browser translation plugins and not read by screen readers.