NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar srishty-07
srishty-07
14 Mar 2021

Pull Request for Issue # .

Summary of Changes

bootstrap margin class was added to the danger button

Testing Instructions

  1. open the cassiopeia page[frontend] on (http://localhost/joomla-cms/index.php?option=com_config&view=modules&id=1&Itemid=101&return=aHR0cDovL2xvY2FsaG9zdC9qb29tbGEtY21zLw%3D%3D)

2)open edit module on the right hand side of the page.

  1. set the toggle device toolbar to mobile view.

4)before applying the patch it would show improper margin between the buttons, but after applying the patch proper margin is there.

Actual result BEFORE applying this Pull Request

2021-03-13 (8)

Expected result AFTER applying this Pull Request

1

avatar srishty-07 srishty-07 - open - 14 Mar 2021
avatar srishty-07 srishty-07 - change - 14 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Mar 2021
Category Front End com_config
avatar srishty-07 srishty-07 - change - 14 Mar 2021
The description was changed
avatar srishty-07 srishty-07 - edited - 14 Mar 2021
avatar brianteeman
brianteeman - comment - 14 Mar 2021

Would it not be better to do this in css with a media query by adding a margin-bottom to the .btn class

avatar richard67
richard67 - comment - 14 Mar 2021

Agree it would be better to do it in (s)css.

@srishty-07 Let us know if you need advise on which scss file to modify.

avatar richard67 richard67 - change - 14 Mar 2021
Title
fixes button margin
[4.0] Fixes button margin
avatar richard67 richard67 - edited - 14 Mar 2021
avatar srishty-07
srishty-07 - comment - 14 Mar 2021

@brianteeman @richard67 sir I thought of doing that , but as every button needed margin so just added bootstrap margin to it, but if you say so I will add media queries in scss file. @richard67 it will be really kind of you if you please tell me about which scss file I have to make changes in.

avatar richard67
richard67 - comment - 14 Mar 2021

@richard67 it will be really kind of you if you please tell me about which scss file I have to make changes in.

I have no idea myself right now ? Maybe @drmenzelit can advise on that.

avatar drmenzelit
drmenzelit - comment - 14 Mar 2021

The definitions for buttons in Cassiopeia are located in templates/cassiopeia/scss/vendor/bootstrap/_buttons.scss
Be careful, because changes here will change all buttons in the template, so you have to check the whole frontend to avoid side effects.
After doing changes in the scss file(s) you need to run npm run build:css

avatar srishty-07 srishty-07 - change - 15 Mar 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2021
Category Front End com_config Front End Templates (site) NPM Change
avatar srishty-07 srishty-07 - change - 15 Mar 2021
Labels Added: NPM Resource Changed
avatar vyaki1718
vyaki1718 - comment - 15 Mar 2021

it would better adding margin using css


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32688.
avatar srishty-07
srishty-07 - comment - 15 Mar 2021

@vyaki1718 i have made the changes in css only in 2nd pr.

avatar ceford
ceford - comment - 15 Mar 2021

In Article Edit view the Versions button needs attention too. Perhaps not in English but in any language where the button labels are longer.

screen shot 2021-03-15 at 09 25 58

So I wonder if the style should be added to the btn class rather than the individual btn-xxx classes.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32688.

avatar brianteeman
brianteeman - comment - 15 Mar 2021

So I wonder if the style should be added to the btn class rather than the individual btn-xxx classes.

That is exactly how it should have been done as its more robust code as you just discovered.

Also please use rem and not px

avatar srishty-07 srishty-07 - change - 15 Mar 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-03-15 18:41:22
Closed_By srishty-07
avatar srishty-07 srishty-07 - close - 15 Mar 2021

Add a Comment

Login with GitHub to post a comment