Don asked about overriding the default focus mixin in Discourse, which adds an outline to input fields, to accommodate a border-radius: 4px style. pmusaraj suggested providing more context and noted that core styles already set border-radius: 0 for input elements.
pmusaraj recommended handling this in the theme by overriding the focused input element’s border-radius or using a solid shadow to replace the outline, as shown in the provided SCSS code. Don asked if disabling the outline is a bad practice for accessibility reasons, and pmusaraj replied that it’s likely okay as long as an alternative styling method is used to indicate focus.
The last update uniform focus style has a new mixin which is add an outline the input fields, selections and other… This is a great for accessibility but we use a border-radius: 4px on input fields. Is that possible to override mixins or add a border-radius: 0 into the core mixins.scss and this generate border-radius: 4px to 0 on focus?
On the left it looks like now and right is after border-radius: 0;
We have an internal theme that has rounded corners for buttons, and I don’t see a similar issue as yours. Can you provide maybe a bit more context, i.e. a larger screenshot so I can see which button this is? Let me know if you are using a public theme, I’m sure this is fixable.