diff --git a/NodeTypes/Content/ContactForm/ContactForm.fusion b/NodeTypes/Content/ContactForm/ContactForm.fusion index 7ba73f54..73979003 100644 --- a/NodeTypes/Content/ContactForm/ContactForm.fusion +++ b/NodeTypes/Content/ContactForm/ContactForm.fusion @@ -7,28 +7,22 @@ prototype(Neos.Demo:Content.ContactForm) < prototype(Neos.Neos:ContentComponent) namespace = 'contact' process { content = afx` -
- Contact - -
- -
+
+ Contact + + - -
- -
+ + - -
- -
+ +
` footer = afx` - + ` schema { diff --git a/NodeTypes/Content/Registration/Registration.fusion b/NodeTypes/Content/Registration/Registration.fusion index 64cb2936..12a4756b 100644 --- a/NodeTypes/Content/Registration/Registration.fusion +++ b/NodeTypes/Content/Registration/Registration.fusion @@ -6,21 +6,21 @@ prototype(Neos.Demo:Content.Registration) < prototype(Neos.Fusion.Form:Runtime.R process { content = afx` -
- - +
+ + - - + + - + + (lowercase letters and numbers only) - - - + + -
+
` schema { diff --git a/Resources/Private/Fusion/Presentation/Template/Base/Base.pcss b/Resources/Private/Fusion/Presentation/Template/Base/Base.pcss index b2dc8670..a8972e31 100644 --- a/Resources/Private/Fusion/Presentation/Template/Base/Base.pcss +++ b/Resources/Private/Fusion/Presentation/Template/Base/Base.pcss @@ -43,9 +43,20 @@ outline-color: theme(colors.light); } - /* .prose .neos-contentcollection :where(p, figure):first-child { - margin-top: 0; - } */ + button[type="submit"] { + min-width: theme(spacing.32); + background-color: theme(colors.light); + padding: theme(spacing.2) theme(spacing.4); + border: none; + color: theme(colors.white); + transition: background-color theme(transitionDuration.DEFAULT) + theme(transitionTimingFunction.DEFAULT); + + &:hover, + &:focus { + background-color: theme(colors.dark); + } + } @media print { h1, @@ -79,3 +90,9 @@ } } } + +@layer utilities { + :is(.form-input, .form-multiselect, .form-select, .form-textarea):focus { + --tw-ring-color: theme(colors.light); + } +} diff --git a/tailwind.config.js b/tailwind.config.js index 79e1d8c2..382a678a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -100,6 +100,9 @@ module.exports = { light: 'rgb(var(--color-light) / )', dark: 'rgb(var(--color-dark) / )', }, + ringColor: { + DEFAULT: 'rgb(var(--color-light))', + }, fontFamily: { sans: ['Work Sans', ...defaultTheme.fontFamily.sans], }, @@ -164,7 +167,9 @@ module.exports = { }, }, plugins: [ - require('@tailwindcss/forms'), + require('@tailwindcss/forms')({ + strategy: 'class', + }), require('@tailwindcss/typography'), require('@tailwindcss/line-clamp'), plugin(({ addVariant, addUtilities }) => {