All of the pea offspring were yellow because

Yellow is surely RECESSIVE

Yellow must be DOMINANT

The actual reason all of the pea offspring were yellow cannot be determined solely based on the given information. Further details about the specific parent plants and their genetic makeup are necessary to determine whether yellow is recessive or dominant in this case.