In light mode, the 'Edit details' text is white on a white background. The text remains white when in dark mode. 