There seems to be an issue with frontend form validation code affecting the disabled attribute of a submit button within a form.
Two different css rules are applied for the enabled and disabled states, including changes in the text color of the button element.
An unusual bug has been identified on Safari/Webkit browsers, specifically in versions 14 and above. Interestingly, this bug does not occur in previous versions of Safari.
Despite updating the CSS rules for the button's color when it is enabled, the text remains greyed out in these newer Safari versions. The Devtools show the correct color value in the computed property (refer to screenshots), but the browser fails to apply it.
Could this be a known issue that others have encountered?
Note: My project involves the material-UI framework, adding additional layers of complexity that make it challenging to provide a simplified code sample. However, since this issue appears only on specific platforms, it is likely that material-ui is not the root cause.
https://i.stack.imgur.com/MqtOP.png https://i.stack.imgur.com/QpW2A.png