Giter Site home page Giter Site logo

Comments (10)

bastilian avatar bastilian commented on July 21, 2024 2

I'm updating the inventory-compliance to PFv4

from frontend-components.

karelhala avatar karelhala commented on July 21, 2024 2

@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.

josejulio avatar josejulio commented on July 21, 2024 1

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)

.pf-c-data-toolbar__content {
.pf-c-data-toolbar__item:last-child { @include rem('min-width', 200px); }

from frontend-components.

rvsia avatar rvsia commented on July 21, 2024 1

@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.

Hyperkid123 avatar Hyperkid123 commented on July 21, 2024

cc @RedHatInsights/ui-reviewers

from frontend-components.

rvsia avatar rvsia commented on July 21, 2024

I will convert Sources after data-driven-forms/react-forms#549 is done

from frontend-components.

rvsia avatar rvsia commented on July 21, 2024

Translation does not use PF

from frontend-components.

josejulio avatar josejulio commented on July 21, 2024

Tried the PF4-update branch and I have one problem with the PrimaryToolbar, the first action button does not appear:

Before:
Screenshot_2020-06-11_15-09-04

After:
Screenshot_2020-06-11_15-10-59

Looking at the html code I can see that the button is indeed there, but with display: none

Screenshot_2020-06-11_15-11-51

Note that is not in the kebab
Screenshot_2020-06-11_15-12-13

but on an iphone 6/7/8 both are there:
Screenshot_2020-06-11_15-13-43

So i think it might be a wrong if/else in the component (or css rule).

from frontend-components.

carlosthe19916 avatar carlosthe19916 commented on July 21, 2024

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.

carlosthe19916 avatar carlosthe19916 commented on July 21, 2024

@rvsia @karelhala just to let you know that your proposed solutions worked fine. Thank you very much!

from frontend-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.