Skip to content

Commit

Permalink
Merge pull request #91 from contao-themes-net/bugfix/c4/form-captcha
Browse files Browse the repository at this point in the history
Fix form captcha (contao 4)
  • Loading branch information
MDevster committed Apr 22, 2024
2 parents e2c44ce + 096b771 commit c4d0d9b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 43 deletions.
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

0 comments on commit c4d0d9b

Please sign in to comment.