Fixes #22056 by ensuring outline cards make their header/footer transparent and use the right border color.