Skip to content

Commit

Permalink
Merge pull request #2579 from SpareBank1/semantiske-farger-file-upload
Browse files Browse the repository at this point in the history
fix(ffe-file-upload): semantiske farger i file upload
  • Loading branch information
antidecaf authored Feb 26, 2025
2 parents eccd113 + 8f54295 commit 04696e6
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 335 deletions.
12 changes: 1 addition & 11 deletions packages/ffe-file-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm install --save @sb1/ffe-file-upload
Full documentation on file upload usage is available at https://design.sparebank1.no/komponenter/skjemaelementer/#fileupload.

```less
@import 'path/to/node_modules/@sb1/ffe-file.upload/less/ffe-file-upload.less';
@import 'path/to/node_modules/@sb1/ffe-file.upload/less/file-upload.less';
```

### Importing compiled CSS
Expand All @@ -24,16 +24,6 @@ If your project does not use Less, you can import the compiled styling:

See also `@sb1/ffe-file-upload-react`.

## Theming with CSS custom properties

In order to support theming of components, this package contains styling that depends on a set of custom properties, defined in `less/theme.less`. These properties in turn depend on a base theme defined in `ffe-core`.

If your project uses the `ffe-core`, you're probably good to go. If not, make sure to import the core properties in `theme.less`:

```css
@import '~@sb1/ffe-core/less/theme';
```

## Development

To start a local development server, run the following from the designsystem root folder:
Expand Down
298 changes: 0 additions & 298 deletions packages/ffe-file-upload/less/ffe-file-upload.less

This file was deleted.

Loading

0 comments on commit 04696e6

Please sign in to comment.