In the following files:

  • config/install/bootstrap_barrio.settings.yml
  • config/schema/bootstrap_barrio.schema.yml
  • subtheme/config/install/bootstrap_barrio_subtheme.settings.yml
  • subtheme/config/schema/bootstrap_barrio_subtheme.schema.yml

The following problems exist:

  • Not every setting is defined.
    • Google Fonts and icons configuration are missing, for example.
  • * Some form labels in the YML and UI are set incorrectly.
    • "Google Fonts Combination" should be "Google Fonts combination", etc.

We should clean this up.

Comments

Morbus Iff created an issue. See original summary.

morbus iff’s picture

Issue summary: View changes
morbus iff’s picture

StatusFileSize
new51.88 KB

This patch does the following:

  • theme_settings.php:
    • Code style corrections.
    • Documentation corrections and improvements.
    • Corrected the "Fluid container" remote Bootstrap link.
    • Corrected the "Outline Buttons" remote Bootstrap link.
  • bootstrap_barrio.schema.yml:
    • Added missing theme settings.
    • Reordered keys, added header docs, matching theme_settings.php.
  • bootstrap_barrio.settings.yml:
    • Reordered keys, added header docs, matching theme_settings.php.
  • subtheme/bootstrap_barrio_subtheme.settings.yml:
    • Replaced with a copy of bootstrap_barrio.settings.yml.
  • subtheme/bootstrap_barrio_subtheme.schema.yml:
    • Replaced with a copy of bootstrap_barrio.schema.yml.
morbus iff’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: improve-theme-settings-3037780-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

morbus iff’s picture

Status: Needs work » Needs review
postovan dumitru’s picture

Hello!

The schema config for the bootstrap_barrio_library is set as integer when it must be a string. The option is never saved in the settings form.

Besides, the whole functionality is redundant. It basically replicates the attachment process of the library to the page which is also handled in the bootstrap_library module.
The configurations for the theme and the module will almost always contradict each other(if you define the local library and set the theme to use the local one and at the same time you use bootstrap_library module CDN functionality, you will end up with double libraries).

I think it's necessary to define conditional requirements for this theme:

  • When bootstrap_library module is present, pass on the requirements to it(unless CDN option is defined, check for presence of a local bootstrap library).
  • When bootstrap_library module is not installed, define the need for a local bootstrap library.

I would really appreciate an input about this and as soon as we settle some "if's" here, we can also bug the maintainers from bootstrap_library about this.

morbus iff’s picture

@Postovan Dumitru: Agree. There are actually a number of other configuration values that aren't used or set either. (Or, at least, feel like they need further investigation, like the _navbar_top_ stuff.) I was trying not to REMOVE things in this patch, though, to make it easier to accept :D

postovan dumitru’s picture

The thing is: this theme has to be forced to accept whatever bootstrap_library is set to use as the delivery method, when the module is enabled of course.

As it is now, it is really misleading and should I mention wrong?

morbus iff’s picture

IMO, that'd be a different issue, not this one.

postovan dumitru’s picture

Overall it is a different issue, but a small part of it is still related to the schema and theme settings.

joegraduate’s picture

The attached patch is a re-roll of #3 that applies cleanly to version 8.x-4.22 for anyone who needs to apply this patch directly to that released version.

ergophobe’s picture

>>set as integer when it must be a string

I already have a patch for one serious issue caused by schema settings that are the wrong type.

#2977160: Missing Navbar on mobile due to incorrect values in schema file

There seems to be no active maintainer for this theme. Neither this issue nor the issue I made a patch for have received any response from the maintainer. The last commit was back in February - 8 months ago.

hatuhay’s picture

Hello,
The theme is mantained and most requests responded in between 24 hours.
Documentation updated.
This is personal effort on spare time.
Whenever the direction of a patch is not perceived as in the right direction it is pointed out.
A new release should come, but it requires a lot of time and responsibility from my side as thousands of sites could crush of not verified on full detail.
If you wish to contribute testing the patches more than happy to receive your help.
Regards

hatuhay’s picture

@joegraduate
Patch failed on DEV, could not apply yet.

hatuhay’s picture

Status: Needs review » Needs work
joegraduate’s picture

@hatuhay the patch in #12 is not intended to be applied to dev. I uploaded it for the convenience of anyone needing to apply the patch to the 4.22 version, specifically.

I believe the original patch in #3 should still apply to the dev branch.

joegraduate’s picture

Status: Needs work » Needs review
trackleft2’s picture

Title: Theme settings not fully defined or styled properly » Remove D9 deprecated code and reroll against #18
Version: 8.x-4.x-dev » 7.x-4.22
Category: Bug report » Task
Issue summary: View changes
StatusFileSize
new52.02 KB

» 7.x-4.22 should be » 8.x-4.22

trackleft2’s picture

Version: 7.x-4.22 » 8.x-4.22
StatusFileSize
new52.02 KB

Can't delete files so have to add a new comment with the correct version number. 8.x-4.22

trackleft2’s picture

Title: Remove D9 deprecated code and reroll against #18 » Theme settings not fully defined or styled properly
trackleft2’s picture

Issue summary: View changes
StatusFileSize
new51.99 KB
joegraduate’s picture

Version: 8.x-4.22 » 8.x-4.x-dev
Assigned: morbus iff » Unassigned
Category: Task » Bug report
Issue summary: View changes
StatusFileSize
new51.94 KB

Thanks @trackleft2 for incorporating the D9 deprecation fixes from #3069680: Drupal 9 Deprecated Code Report here! We needed a way to apply both the fixes from that issue as well as this one in our build and your patches helped us do that.

We are now using the patch in #22 in our composer build because it applies cleanly to the tarball version of 8.x-4.22.

The attached patch is a re-roll of #20 / #22 that applies cleanly to the latest 8.x-4.x dev branch.

(Also restored original issue summary).

  • hatuhay committed b7468a4 on 8.x-4.x authored by joegraduate
    Issue #3037780 by trackleft2, joegraduate, Morbus Iff: Theme settings...
hatuhay’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.