Unlike Widget, widget.titledoesn't have access to classList and its methods for class manipulation, only to className string parameter. As a result, class manipulation can only be done done through className string manipulation which is not optimal, prone to errors and edge cases, requires string-manipulation workarounds as shown below
Description
Unlike
Widget
,widget.title
doesn't have access toclassList
and its methods for class manipulation, only toclassName
string parameter. As a result, class manipulation can only be done done throughclassName
string manipulation which is not optimal, prone to errors and edge cases, requires string-manipulation workarounds as shown belowReference
_Originally posted by @krassowski in https://github.com/jupyterlab/jupyterlab/pull/13921#discussion_r1104963926_