Comments (10)
I'm updating the inventory-compliance
to PFv4
from frontend-components.
@carlosthe19916 no worries, it's a good place to ask! If you want to upgrade to new version of PF4 you can either alias it npm alias or use beta version of FEC @redhat-cloud-services/frontend-components/v/2.1.0-beta.6
from frontend-components.
I created a pull request that solves the issue: #568
@karelhala I see that you are working on inventory. This file also has the same issue (using data-toolbar
instead of toolbar
in the css)
frontend-components/packages/inventory/src/InventoryList.scss
Lines 12 to 13 in 41d66f3
from frontend-components.
@carlosthe19916 You have to use 2.1.0-beta.6
of @redhat-cloud-services/frontend-components
. The beta version is updated for PF4 4+.
from frontend-components.
cc @RedHatInsights/ui-reviewers
from frontend-components.
I will convert Sources after data-driven-forms/react-forms#549 is done
from frontend-components.
Translation does not use PF
from frontend-components.
Tried the PF4-update
branch and I have one problem with the PrimaryToolbar
, the first action button does not appear:
Looking at the html code I can see that the button is indeed there, but with display: none
but on an iphone 6/7/8 both are there:
So i think it might be a wrong if/else in the component (or css rule).
from frontend-components.
My apologies if this is not the correct place where to add an issue I'm having after upgrading to Patternfly 4 In Migration Analytics
application:
If I use these versions:
- @patternfly/react-core: 4.22.2
- @redhat-cloud-services/frontend-components: 2.0.7
Then I'm not able to use the component TableToolbar
anymore. The component TableToolbar
is imported using:
import {
TableToolbar
} from '@redhat-cloud-services/frontend-components/components/TableToolbar';
The error appears not when I import the component but when I try to use it. The error I see is:
ERROR in ./node_modules/@redhat-cloud-services/frontend-components/components/TableToolbar.js
Module not found: Error: Can't resolve '@patternfly/react-core/dist/js/layouts/Toolbar/Toolbar.js' in '/home/cferiavi/git/project-xavier/xavier-ui/node_modules/@redhat-cloud-services/frontend-components/components'
@ ./node_modules/@redhat-cloud-services/frontend-components/components/TableToolbar.js 1:117-185
It seems to me that @redhat-cloud-services/frontend-components/components/TableToolbar'
is trying to resolve @patternfly/react-core/dist/js/layouts/Toolbar/Toolbar.js
from the wrong location. In @patternfly/react-core
V3 the component Toolbar.js
used to be inside the folder layouts/Toolbar
but in the new version @patternfly/react-core
V4 the location layouts/Toolbar
does not exists anymore because it was moved to the folder components/Toolbar
.
Is this something that should be fixed in @redhat-cloud-services/frontend-components/components/TableToolbar
? or maybe there is a workaround I can use in my application?
from frontend-components.
@rvsia @karelhala just to let you know that your proposed solutions worked fine. Thank you very much!
from frontend-components.
Related Issues (20)
- ### ConnectedBreadcrumbs.tsx HOT 2
- ### SimpleTableFilter.test.tsx HOT 2
- ### index.tsx HOT 3
- ### WithHistory.tsx HOT 2
- ### ViewAffectedLink.tsx HOT 1
- ### InsightsLabel.tsx HOT 2
- ### NotAuthorized.tsx HOT 2
- ### Spinner.tsx HOT 2
- ### RebootRequired.tsx HOT 2
- ### WithOuia.test.tsx HOT 1
- ### TableToolbar.tsx HOT 4
- ### TemplateProcessor.tsx HOT 1
- ### Battery.tsx HOT 5
- ### ErrorBoundary.test.tsx HOT 1
- ### MediumBattery.tsx HOT 1
- ### Ansible.tsx HOT 1
- ### NullBattery.tsx HOT 1
- frontend-components-remediations should list @scalprum/react-core as the package dependency
- axios security issue HOT 3
- Request: Update components to support OuiaID prop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontend-components.