Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix form captcha (contao 4) #91

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Types of changes
Security in case of vulnerabilities.
)

## [1.12.1](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.12.1) – 2024-04-22

- [Fixed] Fix form captcha (delete custom `form_captcha template`)

## [1.12.0](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.12.0) – 2024-01-05

- [Added] Add templates to support onepage navigation
Expand Down
2 changes: 1 addition & 1 deletion src/Module/NatureThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class NatureThemeSetup extends BackendModule
{
public const VERSION = '1.12.0';
public const VERSION = '1.12.1';

protected $strTemplate = 'be_naturetheme_setup';

Expand Down
41 changes: 0 additions & 41 deletions src/Resources/contao/templates/forms/form_captcha.html5

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ $darkMode_input-focus-border-color: $grey-darker;
color: $darkMode_boxes-color;
}

.input, .textarea, .select select, .file-cta {
.input, .textarea, .select select, .file-cta, input.captcha {
background: $darkMode_boxes-background;
color: $darkMode_boxes-color;
border-color: $darkMode_input-border-color;
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/public/scss/parts/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,10 @@ body:not(.home) #header .inside {
display: none;
}

input.captcha {
@extend .input;
}

p.error {
padding: 0 0.75rem;
color: $danger;
Expand Down