Use CSS to hide and show flyout states

Fix error state padding issue below button

Change-Id: I5e67299e547daae3487523ea14a2f2f971754759