Skip to content

Commit b8b81c0

Browse files
authored
Merge pull request #146 from finos/dev
Update main from dev
2 parents ecf3141 + 678e877 commit b8b81c0

File tree

11 files changed

+338
-28
lines changed

11 files changed

+338
-28
lines changed

.github/workflows/npm.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to NPM
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- 'docs/**'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
# use 'if' to prevent endless looping with npm package commit
12+
if: "!startsWith(github.event.head_commit.message, '[RELEASE]')"
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
- run: git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
18+
- run: git config user.name "$GITHUB_ACTOR"
19+
# prepend '[RELEASE]' so that it can be detected above to prevent looping
20+
# this is a commit to main that can be ignored by this GitHub action
21+
# use 'patch' to update only the last digit in the version (e.g. 1.1.?)
22+
- run: npm version patch -m "[RELEASE] %s"
23+
- run: git push
24+
# Setup .npmrc file to publish to npm
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: '18.x'
28+
registry-url: 'https://registry.npmjs.org'
29+
- run: npm ci
30+
- run: npm publish --access=public
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CONTRIBUTE.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,32 @@ This document provides guidance for how YOU can collaborate with our project com
55

66
This document describes the contribution process and governance policies of the FINOS Accessibility Theme Builder project. The project is also governed by the [Linux Foundation Antitrust Policy](https://www.linuxfoundation.org/antitrust-policy/), and the FINOS [IP Policy](https://community.finos.org/assets/files/IP-Policy-9b1cd5f6c1d682e073c3c15224fc6d86.pdf), [Code of Conduct](https://community.finos.org/docs/governance/code-of-conduct), [Collaborative Principles](https://community.finos.org/docs/governance/collaborative-principles/), and [Meeting Procedures](https://community.finos.org/docs/governance/meeting-procedures/).
77

8+
## Reporting Issues
9+
10+
We welcome any feedback on the quality, stability or performance of Theme Builder. If you see incorrect behavior or would like to suggest ways to improve Theme Builder, please use these guidelines to create an issue in GitHub.
11+
1. Please [check](https://github.com/finos/a11y-theme-builder/issues) whether there is already an open issue related to your experience/feedback. If there is, join the discussion and contribute any observations or information that may not already be present in the issue.
12+
2. If there isn't already a relevant issue, create one, describing your experience with Theme Builder.
13+
1. Add appropriate tag for project -> [`SDK`, `theme builder app`]
14+
* SDK - performs calculations, creates and populates CSS variables, generates CSS and JSON output
15+
* theme builder app - the application that the user interacts with
16+
3. Add appropriate tag for type of issue -> [`bug`, `enhancement`]
17+
4. (optional) Add tag for required specialties -> [`design thinking`, `project management`, `question`, `documentation`]
18+
5. Set `Projects` field to `ThemeBuilder`
19+
4. If you would like to contribute designs, code, testing or resources toward resolving the issue, please note that in the issue.
20+
5. Respond to any questions or suggestions raised in the issue by other community members.
21+
6. We will triage all new issues at our next community meeting if you would like to offer more information as we prioritize your issue. Click to see more [meeting information](https://github.com/finos/a11y-theme-builder/wiki/Communication#meetings).
22+
823
## Contribution Process
924

1025
Before making a contribution, please take the following steps:
11-
1. Check whether there's already an open issue related to your proposed contribution. If there is, join the discussion and propose your contribution there.
12-
2. If there isn't already a relevant issue, create one, describing your contribution and the problem you're trying to solve.
13-
3. Respond to any questions or suggestions raised in the issue by other developers.
14-
4. Fork the project repository and prepare your proposed contribution.
15-
5. Submit a pull request.
26+
1. Check whether there's already an open issue related to your proposed contribution as described above. If not, follow instructions above to create an issue with all relevant information.
27+
2. Respond to any questions or suggestions raised in the issue by other developers.
28+
3. Fork the project repository and prepare your proposed contribution. All contributions should be created using the latest code from the upstream dev branch.
29+
1. In commit messages, reference associated issue. For example, `commit -m "finos/a11y-theme-builder#111: corrected button behavior"`
30+
2. When your changes are ready, be sure to update your branch with the latest upstream dev branch to ensure code will merge correctly.
31+
3. Retest your contribution with latest updates.
32+
4. Submit a pull request.
33+
* All pull requests should be made to merge into the upstream dev branch.
1634

1735
NOTE: All contributors must have a contributor license agreement (CLA) on file with FINOS before their pull requests will be merged. Please review the FINOS [contribution requirements](https://community.finos.org/docs/governance/Software-Projects/contribution-compliance-requirements) and submit (or have your employer submit) the required CLA before submitting a pull request.
1836

@@ -29,9 +47,9 @@ This section includes ways to get started with your open source project. Include
2947
* Link: https://github.com/finos/a11y-theme-builder/discussions
3048
* Slack
3149
* Used for questions to project maintainers or for private chat.
32-
* Link: https://a11y-l464962.slack.com
50+
* Link: https://join.slack.com/t/finos-lf/shared_invite/zt-24pxubwxi-vKczbM0pWYnltCRoOCDpFQ
3351
* Blog/Wiki
34-
* Link: https://github.com/finos/a11y-theme-builder/wiki
52+
* Link: https://github.com/finos/a11y-theme-builder/wiki
3553

3654
## Community
3755
Participating in our project community spans a variety of activities:

TUTORIAL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ The following is a tutorial of how to use this SDK in order to generate code whi
77
To create a ThemeBuilder without persistent storage:
88

99
```
10-
import { ThemeBuilder } from "a11y-theme-builder-sdk";
10+
import { ThemeBuilder } from "@finos/a11y-theme-builder-sdk";
1111
...
1212
const myThemeBuilder = await ThemeBuilder.create();
1313
```
1414

1515
To create a ThemeBuilder with persistent storage, create a class which implements the [Storage interface](./src/storage/interface.ts) and pass an instance of your object to the create method as follows:
1616

1717
```
18-
import { ThemeBuilder, Storage } from "a11y-theme-builder-sdk";
18+
import { ThemeBuilder, Storage } from "@finos/a11y-theme-builder-sdk";
1919
...
2020
const myStorageObject = new MyStorageObject(); // MyStorageObject implements the 'Storage' interface
2121
const myThemeBuilder = await ThemeBuilder.create({storage: myStorageObject});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "a11y-theme-builder-sdk",
3-
"version": "0.0.22",
2+
"name": "@finos/a11y-theme-builder-sdk",
3+
"version": "1.0.0",
44
"description": "Accessibility Theme Builder SDK",
55
"author": "Keith Smith <KeithSmith@discover.com>",
66
"license": "Apache-2.0",

src/atoms/colorThemes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ export class ColorTheme extends Node implements IColorTheme {
227227
this.primary = new PropertyColorShade("Primary", true, this, opts);
228228
this.secondary = new PropertyColorShade("Secondary", true, this, opts);
229229
this.tertiary = new PropertyColorShade("Tertiary", true, this, opts);
230+
this.secondary.addDependency(this.primary);
231+
this.tertiary.addDependency(this.secondary);
230232
this.lightModeBackground = new PropertyColorPair("Light Mode Background", true, this, []);
231233
this.lightModeBackground.addDependency(this.primary);
232234
this.darkModeBackground = new PropertyColorPair("Dark Mode Background", true, this, []);

src/atoms/typographyStyling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class TypographyStyling extends Node {
5050
getSelectables: this.getFontFamilySelectables.bind(this),
5151
getDefaultValue: this.getFontFamilyDefaultSelectableValue.bind(this),
5252
});
53-
this.fontSize = new PropertyFontRange("Font Size", false, this, 0, 128, defaultFontSize);
53+
this.fontSize = new PropertyFontRange("Font Size", false, this, 0, 256, defaultFontSize);
5454
this.fontWeight = new PropertyNumberSelectable("Font Weight", false, this, [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000], defaultFontWeight);
5555
this.lineHeight = new PropertyPercentageSelectable("Line Height", false, this, [130, 160], defaultLineHeight);
5656
this.letterSpacing = new PropertyPixelRange("Character Spacing", false, this, -2, 10, defaultLetterSpacing);

0 commit comments

Comments
 (0)