Updated GetCss function for component