Skip to content

Commit

Permalink
Merge pull request #7 from doov-io/remove_start_style_selector
Browse files Browse the repository at this point in the history
Replace star selector with doov-react wrapper class name
  • Loading branch information
ozangunalp authored Mar 30, 2020
2 parents 20663ab + 0427886 commit a807a6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<html>
<head>
<link rel="stylesheet" href="./dist/doov-react.css" />
</head>
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
<!-- Don't use this in production: -->
Expand All @@ -15,7 +18,7 @@
const mappingRule = DOOV.map(num).to(f);
const validationRule = DOOV.when(f.eq(num)).validate();
ReactDOM.render(
<div>
<div className="doov-react">
<DoovReact metadata={mappingRule.metadata} fields={{ toto: 'toto' }} />
<DoovReact metadata={validationRule.metadata} fields={{ toto: 'toto' }} />
</div>,
Expand Down
1 change: 1 addition & 0 deletions src/HtmlClass.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export enum HtmlClass {
CSS_DOOV_REACT = 'doov-react',
CSS_VALIDATION_RULE = 'dsl-validation-rule',
CSS_VALIDATE = 'dsl-token-validate',
CSS_NARY = 'dsl-token-nary',
Expand Down
2 changes: 1 addition & 1 deletion src/doov-react.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
.doov-react {
font-family: Arial, Helvetica, sans-serif;
font-size: 11pt;
box-sizing: border-box;
Expand Down

0 comments on commit a807a6d

Please sign in to comment.