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: Update navigation height less variable to css variable. #50

Merged
merged 4 commits into from
May 24, 2023

Conversation

StuartNicholls
Copy link
Contributor

Update to less variable with adapt css variable.

Fixes: #49

Copy link
Contributor

@guywillis guywillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@swashbuck
Copy link

swashbuck commented May 23, 2023

@StuartNicholls Should probably mention the required core/framework version? https://github.com/adaptlearning/adapt-contrib-core/releases/tag/v6.34.0

bower.json, package.json, and maybe add it to the readme.

@StuartNicholls
Copy link
Contributor Author

@StuartNicholls Should probably mention the required core/framework version? https://github.com/adaptlearning/adapt-contrib-core/releases/tag/v6.34.0

bower.json, package.json, and maybe add it to the readme.

Thats a very good point, didn't consider that as was operating in CG Kineo.

Re. bower.json, I think we just need to add the framework number to package.json though. @guywillis is that correct?

@swashbuck is that the correct version? Also, we should probably fix that here: https://github.com/adaptlearning/adapt-contrib-trickle/blob/bef0310950855ed0fde4f17835942e19cb73d5e8/package.json#L4 - and anywhere this might have been updated?

@StuartNicholls
Copy link
Contributor Author

StuartNicholls commented May 23, 2023

Actually, @swashbuck - I'm not sure about this as in theory it still works to a degree as the less variable is still available. @guywillis what do you think? (Edit: @swashbuck ignore this!)

@guywillis
Copy link
Contributor

Re. bower.json, I think we just need to add the framework number to package.json though. @guywillis is that correct?

Yeah, we will need to bump the framework version in both the bower.json and package.json

Actually, @swashbuck - I'm not sure about this as in theory it still works to a degree as the less variable is still available. @guywillis what do you think?

This plugin will need the framework upping to at least v6.34.0 as this release contains the first instance of the --adapt-navigation-height css variable in core.

@oliverfoster
Copy link
Member

"postversion": "cp package.json bower.json"

Part of the release process copies the package.json over the top if the bower JSON. You only need to update the fw version in the package.json as long as you follow the release cycle the bower.json will be updated automatically.

@swashbuck
Copy link

swashbuck commented May 23, 2023

is that the correct version? Also, we should probably fix that here: https://github.com/adaptlearning/adapt-contrib-trickle/blob/bef0310950855ed0fde4f17835942e19cb73d5e8/package.json#L4 - and anywhere this might have been updated?

@StuartNicholls Yes, agreed that other plugins will need the framework version updated.

What I'm not sure about is how we specify the requirement. The Framework tags aren't the same as the Core plugin tags. We only specify the required Framework version in package.json:

  "framework": ">=5.8",

Copy link

@swashbuck swashbuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kirsty-hames
Copy link
Contributor

What I'm not sure about is how we specify the requirement. The Framework tags aren't the same as the Core plugin tags. We only specify the required Framework version in package.json:

Did anyone confirm this as I'm not sure about this myself so would be good to know? I currently download the core release and check the FW version in the package.json.

In which case, shouldn't this have a minimum FW requirement of v5.20.2? I'm not sure where v5.30.3 came from.

@guywillis
Copy link
Contributor

What I'm not sure about is how we specify the requirement. The Framework tags aren't the same as the Core plugin tags. We only specify the required Framework version in package.json:

Did anyone confirm this as I'm not sure about this myself so would be good to know? I currently download the core release and check the FW version in the package.json.

In which case, shouldn't this have a minimum FW requirement of v5.20.2? I'm not sure where v5.30.3 came from.

I doubt this is the optimal way of finding out but this was my process:

  • This PR adds the var(--adapt-navigation-height) css variable
  • I searched where this variable first appears in core which is 6.34.0
  • The corresponding framework release that is the same date as the core release was 5.30.3

@StuartNicholls
Copy link
Contributor Author

What I'm not sure about is how we specify the requirement. The Framework tags aren't the same as the Core plugin tags. We only specify the required Framework version in package.json:

Did anyone confirm this as I'm not sure about this myself so would be good to know? I currently download the core release and check the FW version in the package.json.
In which case, shouldn't this have a minimum FW requirement of v5.20.2? I'm not sure where v5.30.3 came from.

I doubt this is the optimal way of finding out but this was my process:

  • This PR adds the var(--adapt-navigation-height) css variable
  • I searched where this variable first appears in core which is 6.34.0
  • The corresponding framework release that is the same date as the core release was 5.30.3

This is exactly what I do

@kirsty-hames kirsty-hames merged commit a721967 into master May 24, 2023
@kirsty-hames kirsty-hames deleted the issue/49 branch May 24, 2023 11:37
github-actions bot pushed a commit that referenced this pull request May 24, 2023
## [5.0.1](v5.0.0...v5.0.1) (2023-05-24)

### Fix

* Update navigation height less variable to css variable (fixes #50) ([a721967](a721967)), closes [#50](#50)
@github-actions
Copy link

🎉 This PR is included in version 5.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update less variable to css variables
5 participants