Why not reuse \yii\widgets\Menu and override css there? Or even rework \yii\widgets\Menu to handle all Dropdown features.