You've randomly changed some of these 6 similar patterns in the code from `?:` to `if-else`, but left the others intact - can you converge to a unified approach? Even more preferably, the entire thing should be moved inside `show()` in the superclass, which should look like:
`
show() {
   if (isPolymer) {
     (_dialog.element as dynamic).toggle();
   } else {
     showWithFocus(".focused");
   }
}
`
and the HTML should set `focused` attribute on whatever elements should be focused upon dialog opening.