? ?
avatar ggppdk
ggppdk
30 Jul 2018

Steps to reproduce the issue

<div class="row">
  <div class="col-md-3">
    <input class="form-control" placeholder="Input 1" type="text" />
  </div>
  <div class="col-md-3">
    <input class="form-control" placeholder="Input 2" type="text" />
  </div>
  <div class="col-md-4">
    <select class="custom-select">
      <option value="0">No</option>
       <option value="1">Yes</option>
    </select>
  </div>
  <div class="col-md-2">
    <input class="form-control btn btn-secondary" value="Click me" type="button">
  </div>
</div>

Expected result

inputs have widths 41.6% , 41.6%, 16,6%

Actual result

all inputs and selects that use bootstrap 4 CSS classes

.form-control
.custom-select

are hard-coded to a max-width of 240px

System information (as much as possible)

4.0-dev

Additional comments

Why use the bootstrap classes if we are going to hard-code general rules like this

i understand that there may be need for this

but if there is need for the 240px max-width then make it to be more specific
(.form-control {} rule should be prefixed with something appropriate ...)

avatar ggppdk ggppdk - open - 30 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Jul 2018
avatar ggppdk ggppdk - change - 30 Jul 2018
Title
[4.0] Backend template breaks bootstrap 4 width control of inputs by hard-coding a width
[4.0] Backend template breaks bootstrap 4 width control of inputs and selects by hard-coding a max-width
avatar ggppdk ggppdk - edited - 30 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Jul 2018
Category Layout Templates (admin)
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Jul 2018
Status New Discussion
avatar ggppdk ggppdk - change - 30 Jul 2018
The description was changed
avatar ggppdk ggppdk - edited - 30 Jul 2018
avatar ggppdk ggppdk - change - 30 Jul 2018
The description was changed
avatar ggppdk ggppdk - edited - 30 Jul 2018
avatar ggppdk ggppdk - change - 30 Jul 2018
The description was changed
avatar ggppdk ggppdk - edited - 30 Jul 2018
avatar brianteeman brianteeman - change - 30 Jul 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 30 Jul 2018
avatar ciar4n
ciar4n - comment - 31 Jul 2018

This will be a problem for as long as we target Bootstrap classes in the template CSS. Currently with a lot of elements, these are the only classes that exist.

avatar ggppdk
ggppdk - comment - 31 Jul 2018

At least this particular issue is easy for people that need it,
to restore bootstrap CSS default value
which is 100%
with a little more specific rule

@ciar4n
so i could just close this one ?

avatar ciar4n
ciar4n - comment - 31 Jul 2018

It is still a valid issue. The problem is we are hacking Bootstrap to fit a very particular design by overriding it. By right changes to Bootstrap should only exist in the _variables.scss otherwise we are going to likely break certain aspects of it (as you have rightly pointed out). Overrides should only be attached to our own (non-bootstrap) classes. Currently them classes do not exist.

avatar ggppdk
ggppdk - comment - 31 Jul 2018

It is not that this would effect 3rd extensions so much
as said it would be simple to work around it

as it effects some core screens
please go to "Install via URL" page and see how small is the field for URL

  • the right part is hidden
  • and in some browsers e.g. firefox when trying to select from a URL from history, you can not see the full text (it works better with chrome)
avatar ciar4n
ciar4n - comment - 1 Aug 2018

I guess we can remove the global scope of the max-width just to where it is required,

I'll have a look later. SCSS compiler seems to be broke at the moment.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

Please add Label "J4 Backend Template".

avatar infograf768 infograf768 - change - 2 Apr 2019
Labels Added: ?
Removed: J4 Issue
avatar infograf768 infograf768 - labeled - 2 Apr 2019
avatar infograf768 infograf768 - unlabeled - 2 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 5 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2019
Title
[4.0] Backend template breaks bootstrap 4 width control of inputs and selects by hard-coding a max-width
[4.0] [Backend Template] breaks bootstrap 4 width control of inputs and selects by hard-coding a max-width
avatar franz-wohlkoenig franz-wohlkoenig - edited - 5 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[4.0] [Backend Template] breaks bootstrap 4 width control of inputs and selects by hard-coding a max-width
[4.0] breaks bootstrap 4 width control of inputs and selects by hard-coding a max-width
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2019
Labels Removed: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - unlabeled - 20 Apr 2019
avatar coolcat-creations
coolcat-creations - comment - 6 May 2020

It seems the issue is resolved isn't it? @ggppdk

avatar ggppdk
ggppdk - comment - 7 May 2020

Yes it is no longer an issue

avatar ggppdk ggppdk - close - 7 May 2020
avatar ggppdk ggppdk - change - 7 May 2020
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2020-05-07 10:49:19
Closed_By ggppdk

Add a Comment

Login with GitHub to post a comment