-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from dnbexperience/develop
Portal IE11 experiment
- Loading branch information
Showing
36 changed files
with
562 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,4 +130,3 @@ workflows: | |
branches: | ||
only: | ||
- master | ||
- /^release\/.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Main App | ||
* | ||
*/ | ||
|
||
import React, { PureComponent, Fragment } from 'react' | ||
import { Button } from 'dnb-ui-lib/src' | ||
|
||
export default class App extends PureComponent { | ||
render() { | ||
return ( | ||
<Fragment> | ||
Hello <Button text="Button" /> | ||
</Fragment> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Main App | ||
* | ||
*/ | ||
|
||
import React, { PureComponent, Fragment } from 'react' | ||
import { Input, Tabs } from 'dnb-ui-lib/src' | ||
|
||
export default class App extends PureComponent { | ||
render() { | ||
return ( | ||
<Fragment> | ||
<Tabs data={data}>{exampleContent}</Tabs> | ||
</Fragment> | ||
) | ||
} | ||
} | ||
|
||
const exampleContent = { | ||
first: <h2>First</h2>, | ||
second: <Input>Focus me with next Tab key</Input>, | ||
third: ( | ||
<p> | ||
Eros semper blandit tellus mollis primis quisque platea sollicitudin | ||
ipsum | ||
</p> | ||
), | ||
fourth: <h2>Fourth</h2> | ||
} | ||
const data = [ | ||
{ title: 'First', key: 'first' }, | ||
{ title: 'Second', key: 'second' }, | ||
{ title: 'Third', key: 'third', disabled: true }, | ||
{ title: 'Fourth', key: 'fourth' } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Input | ||
label="Input with Status:" | ||
status={this.state.status} | ||
value="Input value with status" | ||
/> |
2 changes: 1 addition & 1 deletion
2
packages/dnb-design-system-portal/src/uilib/components/examples/Tabs.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"1a3caba565dddc0a936aaddc29a82887":"102283444"} | ||
{"1a3caba565dddc0a936aaddc29a82887":"102556061"} |
23 changes: 23 additions & 0 deletions
23
packages/dnb-ui-lib/scripts/prepub/config/postcssConfig.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Make it possible to load the config outside this repo package | ||
* This way we can reuse the config for post css | ||
* | ||
*/ | ||
|
||
module.exports = ({ IE11 = false } = {}) => { | ||
const config = [ | ||
require('postcss-preset-env')({ stage: 0 }), | ||
require('autoprefixer')({ | ||
browsers: ['last 2 versions', 'explorer >= 11'] | ||
}) | ||
] | ||
|
||
if (IE11) { | ||
config.unshift( | ||
require('postcss-calc')(), | ||
require('postcss-custom-properties')() | ||
) | ||
} | ||
|
||
return config | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.