mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-22 19:32:54 +03:00
2fb88e65ca
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
13 lines
371 B
JavaScript
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
|
|
}
|
|
};
|