The following code should be ported from OpenShift to the Component Groups repo. https://github.com/openshift/console/tree/master/frontend/packages/console-shared/src/components/close-button