Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.wp-caption-text font size=0 #195

Open
pixeline opened this issue Jul 6, 2023 · 0 comments
Open

.wp-caption-text font size=0 #195

pixeline opened this issue Jul 6, 2023 · 0 comments

Comments

@pixeline
Copy link

pixeline commented Jul 6, 2023

the generated style for .wp-caption-text makes it invisible.

.wp-caption-text {
    font-size: 0;
    color: #4b5563;
}

I think it boils down to tailwindcss-tailpress library, which expects a "sm" size, or perhaps it should be fontSizes (plural) ?

const imageCaptions = {
        '.wp-caption': {
            "@apply inline-block": {},
            '& img': {
                marginBottom: margin[2] || '0.5rem',
                "@apply leading-none": {}
            },
        },
        '.wp-caption-text': {
            fontSize: (fontSize.sm && fontSize.sm[0]) || '0.9rem',
            color: (colors.gray && colors.gray[600]) || '#718096',
        },
    };

It does not seem to pickup my theme.json typography.fontsizes array values.

To be honest, I would suggest to entirely remove this imageCaptions utility: I'd rather tweak it using good old css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant