Ghost/ghost/admin/.template-lintrc.js
Kevin Ansfield 2fb88e65ca Fixed signin and signup button failure state hover colors
ref https://linear.app/tryghost/issue/ENG-1653

- we were always setting a `style="background-color: #123456"` attribute on the buttons but that didn't allow for different button states such as the red failure state to correctly override meaning there was some odd behaviour when hovering
- removed the fixed `style` attribute and adjusted `<GhTaskButton>`
  - added `@useAccentColor` prop
  - when `@useAccentColor` is true, add the necessary `style` attribute except when showing the failure state
2024-10-17 16:54:23 +01:00

13 lines
371 B
JavaScript

module.exports = {
extends: "recommended",
rules: {
'no-forbidden-elements': ['meta', 'html', 'script'],
'no-implicit-this': {allow: ['noop', 'now', 'site-icon-style']},
'no-inline-styles': false,
'no-duplicate-landmark-elements': false,
'no-pointer-down-event-binding': false,
'no-triple-curlies': false
}
};